In that case you probably used Blynk.begin()
which is a blocking function, so all code execution will stop at that point if the sketch can’t connect to either WiFi or the Blynk server.
For a non-Blocking Blynk connection you need to use Blynk.config()
and Blynk.connect()
, manage your WiFi connection manually, and have a re-connection routine for both WiFi and Blynk. Here’s an example…
I think you mean “so I changed to dynamic provisioning using Edgent”
As I explained earlier, you have to provision your device with the WiFi credentials and Blynk Auth token, otherwise it can’t authenticate to these systems. You should be looking at static provisioning, where these credentials are hard-coded into your sketch, rather than the complexity of dynamic provisioning via Edgent.
Pete.