I hate it when people do this. Keep your discussion in ONE topic, oterwise it makes it much harder to help you!
My deepest apologies. I thought about continuing on the same thread, but ultimately decided that while that thread was a question about how Blynk worked, this was a problem with my being able to connect the device back to my own network. They were different to my untrained mind. Again, apologies.
You say that you’ve tried three different things, but given no detail regarding the outcomes of these processes, or any detail to go with them - for example, when pressing the GPIO1 button for 10 seconds what did you observe your LED doing, and what did you see in your serial monitor?
The outcomes with all of my efforts thus far have been an inability to connect the device back to Blynk via my network. The LED flashes faster after holding the FLASH button for 10 seconds.
I have spent some time doing some more troubleshooting in order to try and narrow down the issue, as it seems that connecting to the network is the issue. I can connect to the device via my phone, and tablet, successfully. This sent me to the code.
I have found that loading a fresh, unchanged Blynk.Edgent example, except for my Template ID and Name, results in the provisioning process working successfully.
When I load my code is when things stop working. This is not surprising for me since I am trying to learn, but I am coming at this without a formal, guided starting point.
The RandomNetds tutorial is totall 7nnecessary. You can achieve the same thing by choosing “Erase flash : All flash contents” in the IDE when uploading your sketch.
Duly noted. Thank you.
If you’re having problems with provisioning a device after you’ve cleared the flash and re-uploaded your sketch then I assume that the issue probably lies with the two lines of firmware configuration code at the very top of your sketch. I’d re-copy this from your template settings in Blynk.
As mentioned above, I am attempting to troubleshoot on my end and can get the Blynk.Edgent sketch to connect to the Blynk template and come online without issue. I can trace the issue back to my own code.
Through my most recent troubleshooting, I think I have learned that both BlynkEdgent.run and Blynk.run do not need to be called. BlynkEdgent.run is all that’s required. Once I removed Blynk.run, the device connected without trouble and I was able to reprovision from other devices quite easily. I cannot speculate about when I inserted Blynk.run in addition to BlynkEdgent.run.