Oh boy! All those sketches that worked yesterday donāt work now All say canāt get baud rateā¦ the baud rate on the display says 250000 and the sketch is 250000
@Blynk_Coeur Hey been awhile since we brought this one upā¦ Iām having an issue one of my variables for humidity set point keeps jumping to a random number after I input the number I want. I think it has something to do with having too many WriteStr or WriteNum calls because if I remove one it seems to work ok. Does that make sense? With the timers, buttons and pictures, plus indoor and outdoor humidity and temperature it looks like about 20 different calls to the functions you made. Just looking at yours it would seem like you are doing more do you have any idea what could be wrong? If you want I could post my code herd
I think your are right ,
I use timers and my void loop only contains blynk.run , ota , etc ā¦, nothing about nextion
///////////////////////////////////// timers /////////////////////////////////////
timer.setInterval(1000L, GetTime);// clock
timer.setInterval(10010L, TempUpdate);// read DHT11
timer.setInterval(20020L, Gauge); // read fuel level
timer.setInterval(21040L, Acquisition1);// read nextion1
timer.setInterval(30050L, Acquisition2);// read nextion2
timer.setInterval(40060L, Hvac);// Hvac control
timer.setInterval(60070L, forecast);// call openweathermap.org
timer.setInterval(70080L, connectionstatus);// check wifi
void loop() {
if (Blynk.connected()) { // If connected run as normal
Blynk.run();
} else if (ReCnctFlag == 0) { // If NOT connected and not already trying to reconnect, set timer to try to reconnect in 60 seconds
ReCnctFlag = 1; // Set reconnection Flag
timer.setTimeout(60000L, []() { // Lambda Reconnection Timer Function
ReCnctFlag = 0; // Reset reconnection Flag
Blynk.connect(); // Try to reconnect to the server
}); // END Timer Function
}
timer.run();
ArduinoOTA.handle(); // For OTA
}
Which is easy to create an array, however I think this was some how messing with my stored int variable for humidity set point. I think it has something to do with pointers but I canāt wrap my head around it.
I changed this to :
StrTime = StrTime + ":" + strMinute;
and now my setPoint variable doesnāt change.
EDIT **I think maybe the problem was the size of the char I didnāt count the FFs in the size. I am trying [35] and the sprintf statement seems to be working. **
Hi @daveblynk I was trying to use a Python HTTP server (for something different) and followed your instructions in post #18
Step 4 confused me, as I thought I was supposed to be typing the IP address and port into the CMD window. I wasnāt until I googled how to do this that I realised that this was in a browser window (makes sense of course - in hindsight ).
So, I used my moderatorās superpowers to edit your post and add the bit in bold below - just so that itās easier for others to follow in futureā¦
Hope thatās okay with you. How is this Nextion OTA stuff working for you now?
I have been just OTAing the basic NextionOTA sketch when I do some changes to the GUI. Then after that, OTAing the Blynk sketch back onto the device. Saves taking the box apart but still isnāt ideal. I have no idea why it work earlier to us a virtual pin to trigger the NextionOTA but now it refuses.
@Blynk_Coeur you got your two ācylinderā esp32 yet? When I get settled back into a home again I want to order some dev boards (home drawn PCBs) for my D1 mini 32s and get serious about some projects. Still tuning your thermostat? Youāll have to try Nextion OTA with the new blynk library and let me know if it still conflicts.