The Photon device is, by default, in automatic mode. But in the case that there is no Internet coverage, is normal that is blocking, so the software on the device can’t run? Is there any way that if there is Internet, I can use the cloud system and in case there is no internet, the software on the device will start?
Yes it is.
But since you know AUTOMATIC mode, I’d assume you also know SEMI_AUTOMATIC (and MANUAL), which will help out there.
Additionally there is SYSTEM_THREAD(ENABLED).
Thank you for your reply. My solution, for now, is to use the following lines of code to connect to the WiFi network:
Of course the mode is the semi. What do you think about? Is there any way to let check if there is an Internet connection in the setup, in order to allow to flash the device from the cloud?
With your code you assume to have a WiFi network available otherwise that will again block indefinetly.
But for OTA updates, you need a valid Particle cloud connection.