i have my NodeMcu 8266 hardware running fine… almost…
i am getting lots of unexpected lost connections… or something…
Blynk.connected() is returning false…
looking thru the doc, it says do NOT put ANY Blynk. methods in loop(){}
but i see all kinds of code with Blynk.run(); in there… I have
void loop() {
// only attempt Blynk-related functions when connected to Blynk
if (Blynk.connected())
{
Blynk.run();
}
timer.run();
ArduinoOTA.handle();
}
and timer is
BlynkTimer timer;
so that leads me to believe that this is ALSO a Blynk. function in loop…
i have an timer event handler which sends (Blynk.virtualwrite()) the data…
yesterday the hardware was restarted about 8pm, and was reported offline by the app at 02:20am this morning,
but on the IDE serial console it showed still connected and writing happily… (5 virtualwrite()s (V1-V5) every 15 seconds)
what am I doing wrong, or how do I debug this…
(newbie, this is my 1st hardware and app construction)
thanks
Sam