Skip to content

Commit

Permalink
switch from zephyr JSON to cJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffMboya committed Jan 21, 2025
1 parent 578a2fc commit bb0b7ed
Show file tree
Hide file tree
Showing 5 changed files with 3,596 additions and 93 deletions.
2 changes: 1 addition & 1 deletion embed-proplet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ zephyr_library_sources(${WAMR_RUNTIME_LIB_SOURCE})

zephyr_library_app_memory(wamr_partition)

target_sources(app PRIVATE src/main.c src/mqtt_client.c src/wasm_handler.c src/wifi_manager.c)
target_sources(app PRIVATE src/cJSON.c src/main.c src/mqtt_client.c src/wasm_handler.c src/wifi_manager.c)

target_link_libraries(app PRIVATE wamr_lib)
10 changes: 6 additions & 4 deletions embed-proplet/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ CONFIG_MQTT_LIB_WEBSOCKET=n
# Uncomment to enable ALPN protocol for socket MQTT Library.
# CONFIG_MQTT_LIB_TLS_USE_ALPN=y

# JSON Support
CONFIG_JSON_LIBRARY=y
# JSON Parsing
# CONFIG_JSON_LIBRARY=y
# Note: Zephyr's JSON library has been replaced by cJSON for JSON parsing and encoding.
# Uncomment the line above only if reverting to the Zephyr JSON library is necessary.

# Logging
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
# Uncomment the following lines to enable debug logs for mqtt, networking stack, Wi-Fi operations, and DHCPv4 server component.
# Uncomment to enable debug logs for mqtt, networking stack, Wi-Fi operations, and DHCPv4 server component.
# CONFIG_MQTT_LOG_LEVEL_DBG=y
# CONFIG_NET_LOG=y
# CONFIG_WIFI_LOG_LEVEL_DBG=y
Expand All @@ -72,7 +74,7 @@ CONFIG_NET_STATISTICS=y
CONFIG_NET_STATISTICS_PERIODIC_OUTPUT=n

# Thread Analyzer
# Uncomment the following lines when debugging thread-related issues, such as stack overflows, high CPU usage by specific threads, or deadlocks.
# Uncomment to debug thread-related issues.
# CONFIG_THREAD_NAME=y
# CONFIG_THREAD_ANALYZER=y
# CONFIG_THREAD_ANALYZER_AUTO=y
Expand Down
Loading

0 comments on commit bb0b7ed

Please sign in to comment.