I accidentally uploaded an infinite loop to a Photon. The code was to turn on the LED Red. Not it just keeps turning the LED red. I am not able to erase that code no matter what.
I have tried pressing Setup and Reset, leaving the reset and keep pressing the setup. It did not work.
I tried long pressing Setup(about 10 seconds) until it was rapidly blinking blue. It did not work.
Is there a way to do Factory reset or remove the uploaded code ? When it is connected to the cloud, it automatically runs the code and I am not able to do anything with it now.
After your step 2 Safe Mode alone won’t help anymore.
You first need to reapply the WiFi credentials befor you can use Safe Mode to flash OTA.
Or you use CLI to flash code via USB.
is the way to put the device into Safe Mode (first option - magenta) or DFU Mode (second option - yellow).
Is the way to put the device into Listening Mode (blinking blue) to add new WiFi credentials and (with 10+ sec) erase all already stored sets of credentials.
Thank you so much. It answers my questions. One more questions. I read somewhere that we can add upto 3 wifi credentials what happens if you add more than 3 ? or there is no limit to that ?