idf_component_register(SRCS "main.c" "ota.c" "wifidevnum_config.c" "mqttconf_commun.c" "hardware_ctrl.c"
                    INCLUDE_DIRS "."
                    REQUIRES spiffs nvs_flash esp_wifi esp_event esp_http_server esp_http_client esp_https_ota mqtt json app_update esp_timer esp_netif driver lwip
                    )
spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)