diff --git a/examples/esp32/device-dashboard/main/CMakeLists.txt b/examples/esp32/device-dashboard/main/CMakeLists.txt index f97ccef2..fb1e9d9e 100644 --- a/examples/esp32/device-dashboard/main/CMakeLists.txt +++ b/examples/esp32/device-dashboard/main/CMakeLists.txt @@ -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) diff --git a/examples/esp32/device-dashboard/main/mongoose_config.h b/examples/esp32/device-dashboard/main/mongoose_config.h index 910630d4..239bdeeb 100644 --- a/examples/esp32/device-dashboard/main/mongoose_config.h +++ b/examples/esp32/device-dashboard/main/mongoose_config.h @@ -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 diff --git a/examples/esp32/uart-bridge/main/CMakeLists.txt b/examples/esp32/uart-bridge/main/CMakeLists.txt index f8c1bbe1..2f7add46 100644 --- a/examples/esp32/uart-bridge/main/CMakeLists.txt +++ b/examples/esp32/uart-bridge/main/CMakeLists.txt @@ -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) diff --git a/examples/esp32/uart-bridge/main/mongoose_config.h b/examples/esp32/uart-bridge/main/mongoose_config.h index 910630d4..07a8d67f 100644 --- a/examples/esp32/uart-bridge/main/mongoose_config.h +++ b/examples/esp32/uart-bridge/main/mongoose_config.h @@ -1 +1,3 @@ #define MG_ARCH MG_ARCH_ESP32 + +#define MG_ENABLE_PACKED_FS 1