feat: Implement HTTP server with static file serving from LittleFS, system APIs, and network connectivity management.

This commit is contained in:
2026-03-03 16:17:05 -05:00
parent 80114b1d9f
commit 7c537ed4db
5 changed files with 36 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ idf_component_register(SRCS "main.cpp"
if(CONFIG_CALENDINK_DEPLOY_WEB_PAGES)
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../frontend")
if(EXISTS ${WEB_SRC_DIR}/dist)
littlefs_create_partition_image(www ${WEB_SRC_DIR}/dist FLASH_IN_PROJECT)
littlefs_create_partition_image(www_0 ${WEB_SRC_DIR}/dist FLASH_IN_PROJECT)
else()
message(FATAL_ERROR "'${WEB_SRC_DIR}/dist' doesn't exist. Run 'npm run build' in frontend/ first.")
endif()