This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // discover esp8266 in local network | |
| // 29.01.2020 | |
| #include "WiFiUdp.h" | |
| #include "ESP8266WiFi.h" | |
| #define DISCOVERY_MESSAGE "8266_DISCOVERY" | |
| #define DEBUG | |
| const uint16_t echoPort = 8266; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // settings manager | |
| // 29.01.2020 | |
| #include "FS.h" | |
| //#define DEBUG //debug mode | |
| const char* settingsFilename = "/8266.cfg"; //settings filename | |
| struct settings_t{//settings struct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // esp8266 https OTA functoins | |
| // 25.01.2020 Первая версия | |
| // 27.02.2020 оптимизирована проверка обновлений, теперь можно работать с любым сайтом. | |
| #include "WiFiClientSecure.h" | |
| #include "ESP8266httpUpdate.h" | |
| #define DEBUG | |
| //const char* downloadHost = "firebasestorage.googleapis.com"; | |
| const int16_t httpsPort = 443; |