Alexey Emelyanenko
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
0 deletions
-
examples/companion_radio/main.cpp
|
|
@ -245,6 +245,12 @@ void setup() { |
|
|
void loop() { |
|
|
void loop() { |
|
|
the_mesh.loop(); |
|
|
the_mesh.loop(); |
|
|
sensors.loop(); |
|
|
sensors.loop(); |
|
|
|
|
|
if (WiFi.status() != WL_CONNECTED) { |
|
|
|
|
|
Serial.println("Reconnecting to WiFi..."); |
|
|
|
|
|
WiFi.disconnect(); |
|
|
|
|
|
WiFi.reconnect(); |
|
|
|
|
|
delay(5000); // Give it time to reconnect
|
|
|
|
|
|
} |
|
|
#ifdef DISPLAY_CLASS |
|
|
#ifdef DISPLAY_CLASS |
|
|
ui_task.loop(); |
|
|
ui_task.loop(); |
|
|
#endif |
|
|
#endif |
|
|
|