diff --git a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino index 32f5a42..68dff52 100644 --- a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino +++ b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino @@ -12,7 +12,7 @@ #include #include -#define MAGIC 0xdeadbeef +#define EEPROM_MAGIC 0xdeadbeef // Plati pro desticku Witty s modulem ESP-12E #define PIN_FORCE_CONFIG 4 @@ -71,6 +71,10 @@ void ICACHE_FLASH_ATTR wcb(wificonfigstate_t state) case WCS_CONFIGWAIT: break; + + case WCS_CONFIGTIMEOUT: + DEBUG_OUT(F("Config timeout...\r\n")); + break; } } @@ -102,7 +106,7 @@ void ICACHE_FLASH_ATTR setup() pinMode(PIN_FORCE_CONFIG, INPUT_PULLUP); // pin, co slouzi jako vstup tlacitka int fc = digitalRead(PIN_FORCE_CONFIG); // pozadavek na vynucene vyvolani konfigurace - Serial.begin(9600); + Serial.begin(115200); String dn = EES_readString(EEPROM_CONFIG_ORIGIN + offsetof(eepromconfig_t, devname), elementSize(eepromconfig_t, devname)); strcpy(WiFiDeviceName, dn.c_str()); wifi.addParameter(&devname);