Skip to content

Commit

Permalink
Merge pull request #2713 from cesanta/nodetemb
Browse files Browse the repository at this point in the history
move Mongoose options to mongoose_config
  • Loading branch information
scaprile authored Apr 19, 2024
2 parents ec5531d + 93477c8 commit 601af78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions examples/esp32/device-dashboard/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ idf_component_register(SRCS "main.c"
"net.c"
"packed_fs.c"
"mongoose.c")
component_compile_options(-DMG_ENABLE_LINES)
component_compile_options(-DMG_ENABLE_PACKED_FS)
component_compile_options(-DHTTP_URL="http://0.0.0.0:80")
component_compile_options(-DHTTPS_URL="https://0.0.0.0:443")
component_compile_options(-DMG_TLS=MG_TLS_NONE) # change to 'MG_TLS_MBED' to enable TLS
component_compile_options(-DMG_OTA=MG_OTA_CUSTOM)
component_compile_options(-DMG_DEVICE=MG_DEVICE_CUSTOM)
5 changes: 5 additions & 0 deletions examples/esp32/device-dashboard/main/mongoose_config.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#define MG_ARCH MG_ARCH_ESP32

#define MG_ENABLE_PACKED_FS 1
#define MG_TLS MG_TLS_NONE // change to 'MG_TLS_MBED' to enable TLS
#define MG_OTA MG_OTA_CUSTOM
#define MG_DEVICE MG_DEVICE_CUSTOM
2 changes: 0 additions & 2 deletions examples/esp32/uart-bridge/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ idf_component_register(SRCS "main.c"
"net.c"
"packed_fs.c"
"mongoose.c")
component_compile_options(-DMG_ENABLE_LINES=1)
component_compile_options(-DMG_ENABLE_PACKED_FS=1)
component_compile_options(-DUART_API_IMPLEMENTED=1)
2 changes: 2 additions & 0 deletions examples/esp32/uart-bridge/main/mongoose_config.h
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#define MG_ARCH MG_ARCH_ESP32

#define MG_ENABLE_PACKED_FS 1

0 comments on commit 601af78

Please sign in to comment.