My brand new Photon had been working on another WiFi network. I moved it to a different location, put in in blinking blue mode and used the iPhone program to give it the new WiFi credentials. It seemed to take them, but the iPhone program said the configuration was incomplete. A few reboots of the Photon later it was breathing cyan and showed up as OnLine in the console, and in the iPhone app.
However, after a minute or so the Photon would blink orange twice, then go back to rapid cyan flashing. The console showed it OffLine. Sometimes it would go back to breathing cyan itself, other times I would reset it and it would come online.
I put it back into blinking blue mode and tried to configure it from the iPhone app again, but the same result.
Eventually I put it in blinking blue mode and did particle setup
on my Mac Laptop. I gave the Photon the WiFi password again and this time it seems to be working without a problem.
I don’t know why this happened or why it corrected itself by using the CLI. Perhaps that had nothing to do with it?
I write this here for other lost souls to find.
Since setting WiFi credentials worked the second time, I wonder if you have a dual band (2.4 GHz & 5 GHz) router with the same SSID on both bands? There is some difference between the bands that is well known to sometimes confuse the Photon and it does not connect.
Could this be the case for you?