got mqtt and wifi connection working reliably

This commit is contained in:
2026-03-27 16:33:49 +01:00
parent 5f49a5c1fe
commit 12873bae43
7 changed files with 139 additions and 30 deletions

View File

@@ -25,7 +25,8 @@ add_custom_command(
-P ${CMAKE_CURRENT_SOURCE_DIR}/prepend_include.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${CMAKE_SOURCE_DIR}/fs/index.html
DEPENDS ${CMAKE_SOURCE_DIR}/fs/config.html
DEPENDS ${CMAKE_SOURCE_DIR}/fs/mqtt_config.html
DEPENDS ${CMAKE_SOURCE_DIR}/fs/wlan_config.html
)
@@ -34,6 +35,11 @@ add_executable(sensor-pico
src/webserver.c
)
add_dependencies(sensor-pico generate_fsdata)
add_custom_target(generate_fsdata
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/fsdata.c
)
# Standard Ein-/Ausgabe über USB (du siehst printf im Terminal)
pico_enable_stdio_usb(sensor-pico 1)