fix(websocket): clean up component dependencies

- Remove unused 'json', 'nvs_flash', 'esp_stubs', dependency from Linux build configuration
- Add cJSON dependency to target example's idf_component.yml
This commit is contained in:
surengab
2025-10-29 16:46:47 +04:00
parent c078c36361
commit d665e6f18e
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
idf_component_register(SRCS "websocket_linux.c"
REQUIRES esp_websocket_client protocol_examples_common)
REQUIRES esp_websocket_client protocol_examples_common esp_netif)
if(CONFIG_GCOV_ENABLED)
target_compile_options(${COMPONENT_LIB} PUBLIC --coverage -fprofile-arcs -ftest-coverage)

View File

@@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <esp_log.h>
#include "nvs_flash.h"
#include "protocol_examples_common.h"
#include "esp_websocket_client.h"
@@ -160,7 +159,6 @@ int main(void)
esp_log_level_set("transport_ws", ESP_LOG_DEBUG);
esp_log_level_set("trans_tcp", ESP_LOG_DEBUG);
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());