My project is IoT enabled, but I need it to run regardless of being on WiFi or not.
I am using an ATmega1284p that communicates with esp8266 for WiFi connection.
The problem is: after Blynk.begin, if WiFi credentials & Blynk auth are not right, it gets stuck failing to connect infinitely. I need to prevent this, in case the user isn’t on WiFi they still need the other functionality.
So I need it to just stop trying and move on after 2-3 attempts.
How can I accomplish this? I’m looking through the libraries to see if I could modify it to just quit and move on after a certain time or number of attempts, but haven’t found the right library file yet.
Thanks. I couldn’t get Blynk.connect to work as documented in Connection Management, but after finding the header file (I’m using BlynkSimpleShieldEsp8266) I found the shield config function has different inputs. Code now compiles. I will test functionality and update as soon as I get a chance.
in case anyone else has a problem with Blynk.config giving an error when using the ESP8266 shield.
From the header file it is looking for: