File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
components/esp_websocket_client Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ endif()
1111if (${IDF_TARGET} STREQUAL "linux" )
1212 idf_component_register(SRCS "esp_websocket_client.c"
1313 INCLUDE_DIRS "include"
14- REQUIRES esp-tls tcp_transport http_parser esp_event nvs_flash esp_stubs json
14+ REQUIRES esp-tls tcp_transport http_parser esp_event
1515 PRIV_REQUIRES esp_timer)
1616else ()
1717 idf_component_register(SRCS "esp_websocket_client.c"
Original file line number Diff line number Diff line change 11idf_component_register(SRCS "websocket_linux.c"
2- REQUIRES esp_websocket_client protocol_examples_common)
2+ REQUIRES esp_websocket_client protocol_examples_common esp_netif )
33
44if (CONFIG_GCOV_ENABLED)
55 target_compile_options (${COMPONENT_LIB} PUBLIC --coverage -fprofile-arcs -ftest-coverage)
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66#include <esp_log.h>
7- #include "nvs_flash.h"
87#include "protocol_examples_common.h"
98
109#include "esp_websocket_client.h"
@@ -160,7 +159,6 @@ int main(void)
160159 esp_log_level_set ("transport_ws" , ESP_LOG_DEBUG );
161160 esp_log_level_set ("trans_tcp" , ESP_LOG_DEBUG );
162161
163- ESP_ERROR_CHECK (nvs_flash_init ());
164162 ESP_ERROR_CHECK (esp_netif_init ());
165163 ESP_ERROR_CHECK (esp_event_loop_create_default ());
166164
Original file line number Diff line number Diff line change @@ -4,5 +4,7 @@ dependencies:
44 espressif/esp_websocket_client :
55 version : " ^1.0.0"
66 override_path : " ../../../"
7+ espressif/cjson :
8+ version : " ^1.7.15"
79 protocol_examples_common :
810 path : ${IDF_PATH}/examples/common_components/protocol_examples_common
You can’t perform that action at this time.
0 commit comments