Glliw / Arduino-WIFI-Garage-Heater

Arduino WIFI Garage Heater
0 stars 0 forks source link

Stuck at "Starting Thermostat" stage #5

Open Glliw opened 1 year ago

Glliw commented 1 year ago

Blynk app was timing out on connection. Upon inspection of the thermostat LCD, screen was found stuck at "Starting Thermostat" message.

Glliw commented 1 year ago

Looking at the code file "Relay_LCD_DHT11_ESP8266_WIFI_Controlled", which I believe is the currently installed version on the thermostat (need to track this better!), is either stuck at "dht.begin()" or "Blynk.begin(auth, ssid, pass);". Given Blynk's discontinued support of the old app, it is likely that the Blynk.begin is not functioning. It may also be possible that the wifi connection in the garage has been lost.

To check if the wifi signal is lost, I would need to know the MAC address or current IP address to confirm, whch I do not.

Searching google, I found the following link stating that as of December 31st, 2022 the old Blynk app server was turned off. Thus, I need to migrate to the new Blynk server in the code or to a new service. https://blynk.io/blog/what-will-happen-to-the-legacy-blynk-platform

To complete the migration to the new Blynk server, follow this guide: https://docs.blynk.io/en/blynk-1.0-and-2.0-comparison/migrate-from-1.0-to-2.0

void setup() { Serial.begin(9600); Serial.println(F("Starting the thermostat...")); lcd.begin(16, 2); // for 16 x 2 LCD module lcd.setBacklightPin(3, POSITIVE); lcd.setBacklight(HIGH); //lcd.clear(); pinMode(EnableHeater, OUTPUT); lcd.setCursor(0, 0); lcd.print("Starting the"); lcd.setCursor(0, 1); lcd.print("Thermostat..."); dht.begin(); Blynk.begin(auth, ssid, pass); delay (2000); lcd.clear(); delay(1000);