I'm getting this issue after it started working for a few hours. I'm using the 2.9 Waveshare(GxEPD2_290_T94_V2 driver). The wifi is fine but I do also get an occasional failed to obtain time error.
Here is the console:
Connecting to: ----------
WiFi connected at: -------------
2
3
4
I'm getting this issue after it started working for a few hours. I'm using the 2.9 Waveshare(GxEPD2_290_T94_V2 driver). The wifi is fine but I do also get an occasional failed to obtain time error.
Here is the console: Connecting to: ---------- WiFi connected at: ------------- 2 3 4
Creating object...and deserializeJson() failed: InvalidInput
Creating object...and deserializeJson() failed: InvalidInput 4
Creating object...and deserializeJson() failed: InvalidInput
Creating object...and deserializeJson() failed: InvalidInput Entering 1489-secs of sleep time Awake for : 3.698-secs Starting deep-sleep period...
Here is the code where it's failing:
void setup() { StartTime = millis(); Serial.begin(115200); while (!Serial); Serial.println(FILE); if (StartWiFi() == WL_CONNECTED && SetupTime() == true) { bool WakeUp = false; if (WakeupHour > SleepHour) { Serial.println("1"); WakeUp = (CurrentHour >= WakeupHour || CurrentHour <= SleepHour); } else { Serial.println("2"); WakeUp = (CurrentHour >= WakeupHour && CurrentHour <= SleepHour); } if (WakeUp) { Serial.println("3"); InitialiseDisplay(); // Give screen time to initialise by getting weather data! byte Attempts = 1; bool RxWeather = false, RxForecast = false; WiFiClient client; // wifi client object while ((RxWeather == false || RxForecast == false) && Attempts <= 2) { // Try up-to 2 time for Weather and Forecast data Serial.println("4"); if (RxWeather == false) RxWeather = obtain_wx_data(client, "weather"); if (RxForecast == false) RxForecast = obtain_wx_data(client, "forecast"); Attempts++; } if (RxWeather && RxForecast) { // Only if received both Weather or Forecast proceed Serial.println("5"); GetHighsandLows();; StopWiFi(); // Reduces power consumption DisplayWeather(); display.display(false); // Full screen update mode } } } BeginSleep(); }
Any ideas?