Fix REST server initialization

This commit is contained in:
2025-06-06 22:20:37 +01:00
parent 282e7f517b
commit 2fc70866a3
4 changed files with 15 additions and 4 deletions

View File

@@ -10,3 +10,8 @@ idf_component_register(SRCS "${srcs}"
PRIV_INCLUDE_DIRS "src"
PRIV_REQUIRES nvs_flash esp_http_server esp_netif esp_https_ota app_update json mqtt vfs spiffs # Use spiffs aqui
REQUIRES config api logger)
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/webfolder")
if(EXISTS ${WEB_SRC_DIR})
spiffs_create_partition_image(data ${WEB_SRC_DIR} FLASH_IN_PROJECT)
endif()