You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TFT_eSPI_weather.ino Line 371. When you display current temperature, Celsius must be display on "si" units, but also when "ca" used. I modify line:
if (units == "si" || units == "ca") tft.drawString("oC", 237, 95);
Also I add few line to main loop to reconnect Wifi when lost. My router reboot each night at 3AM and ESP32 never reconnect, I add these line executed each minute at same time as NTP request:
// If minute has changed then request new time from NTP server
if (booted || minute() != lastMinute)
{
// Reconnect Wifi if disconnected when my router reboot.
if(WiFi.status() != WL_CONNECTED) {
WiFi.reconnect();
delay(1000);
}
The text was updated successfully, but these errors were encountered:
TFT_eSPI_weather.ino Line 371. When you display current temperature, Celsius must be display on "si" units, but also when "ca" used. I modify line:
if (units == "si" || units == "ca") tft.drawString("oC", 237, 95);
Also I add few line to main loop to reconnect Wifi when lost. My router reboot each night at 3AM and ESP32 never reconnect, I add these line executed each minute at same time as NTP request:
// If minute has changed then request new time from NTP server
if (booted || minute() != lastMinute)
{
The text was updated successfully, but these errors were encountered: