idf_component_register( SRCS "app_main.cpp" "cloud_client.cpp" "wifi_manager.cpp" "wifi_store_nvs.cpp" INCLUDE_DIRS "." REQUIRES m5stack_stopwatch esp_event esp_netif esp_wifi esp_timer esp_websocket_client json nvs_flash mbedtls esp_http_server ) string(TIMESTAMP DEVICE_LAB_BUILD_TIME "%Y-%m-%d %H:%M UTC" UTC) target_compile_definitions(${COMPONENT_LIB} PRIVATE DEVICE_LAB_FIRMWARE_VERSION="${PROJECT_VER}") target_compile_definitions(${COMPONENT_LIB} PRIVATE DEVICE_LAB_BUILD_TIME="${DEVICE_LAB_BUILD_TIME}")