set(L09_AUTOSLEEP "1" CACHE STRING "0=DFS+modem baseline, 1=automatic light sleep")
if(NOT L09_AUTOSLEEP MATCHES "^[01]$")
  message(FATAL_ERROR "L09_AUTOSLEEP must be 0 or 1")
endif()
idf_component_register(SRCS "main.cpp" "credentials.c" INCLUDE_DIRS "." REQUIRES esp_wifi esp_event esp_netif esp_pm esp_driver_gpio esp_timer nvs_flash lwip)
target_compile_definitions(${COMPONENT_LIB} PRIVATE L09_AUTOSLEEP=${L09_AUTOSLEEP})
