I have a Photon running a program that normally doesnot need an internet connection.
However if I want to change my application I do need ofcourse a connection.
As I do not have the WiFi available that I used for the initial setup, I now want that Photon to setup for a new WiFi (actually a hotspot on my iPhone).
The problem however is that in the void setup() I included a statement that disconnects the Photon if no connection is found/established within 30 seconds.
As a result I am not able to do that new setup: the LED is blinking blue, but it stops after 30 seconds and that is too little time to put in the new credentials and have the system being setup...
Is there any other way to do a new setup, given this situation?
Hi, I would try to make the device enter safe mode:
DOCS:
Safe mode, breathing magenta (red and blue at the same time), connects the device to the cloud, but does not run any application firmware.
You can use this to flash the device OTA even if you have a bug in your firmware that is preventing the device from running properly.
To put your device in safe mode:
- Hold down the MODE button
- Tap the RESET button while continuing to hold down the MODE button
- When the status LED blinks magenta, release the MODE button.
1 Like
Since it appears that you don't have Wi-Fi credentials set, if you start the safe mode sequence you will start with blinking magenta but go immediately into blinking dark blue (listening mode) again. You're in safe listening mode, however, and your user firmware will not run so you will not time out after 30 seconds and can complete setup normally to enter credentials.
1 Like