diff --git a/src/Makefile b/src/Makefile index b6b0923..0681fbb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,7 +14,6 @@ EXTRA_COMPONENTS = \ $(abspath ../components/esp-wifi-config)\ $(abspath ../components/UDPlogger)\ $(abspath ../components/esp-qrcode)\ - $(abspath ../components/esp-button)\ $(abspath ../components/esp-adv-button)\ $(abspath ../components/esp-homekit-common-functions/led_codes)\ $(abspath ../components/esp-homekit-common-functions/ota)\ diff --git a/src/wifi_thermostat.c b/src/wifi_thermostat.c index 8ca3c4c..2d66eef 100644 --- a/src/wifi_thermostat.c +++ b/src/wifi_thermostat.c @@ -135,6 +135,8 @@ ETSTimer screen_timer; #include homekit_characteristic_t wifi_reset = HOMEKIT_CHARACTERISTIC_(CUSTOM_WIFI_RESET, false, .setter=wifi_reset_set); +homekit_characteristic_t wifi_check_interval = HOMEKIT_CHARACTERISTIC_(CUSTOM_WIFI_CHECK_INTERVAL, 10, .setter=wifi_check_interval_set); +/* checks the wifi is connected and flashes status led to indicated connected */ homekit_characteristic_t ota_trigger = API_OTA_TRIGGER; homekit_characteristic_t name = HOMEKIT_CHARACTERISTIC_(NAME, DEVICE_NAME); homekit_characteristic_t manufacturer = HOMEKIT_CHARACTERISTIC_(MANUFACTURER, DEVICE_MANUFACTURER); @@ -644,7 +646,7 @@ void user_init(void) { screen_init(); printf ("Screen init called\n"); - wifi_config_init("WiFi-Thermostat", NULL, on_wifi_ready); + wifi_config_init(DEVICE_NAME, NULL, on_wifi_ready); }