Fix REST server initialization
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user