This note is related to: WiFi channel switching stops WiFi connectivity and is only recoverable by reboot (BUG), [SOLVED] TCPCLIENT intranet connection fails if no cloud connection and others tickets.
Situation is Photon connected on a WLAN which does NOT have connection to the cloud, ie Photon is flashing cyan.
The Photon is disconnecting from the WiFi at a regular intervals of say 15 seconds. Here is output from the trace log:
0004264763 [system] ERROR: Cloud: unable to resolve IP for device.spark.io
0004264763 [system] WARN: Cloud socket connection failed: -1
0004269767 [system] WARN: Internet Test Failed!
0004269767 [system] WARN: Resetting WLAN due to 2 failed connect attempts
0004269767 [system] WARN: Handling cloud error: 2
0004269869 [system] WARN: Resetting WLAN due to SPARK_WLAN_RESET
0004269869 [app] WARN: WiFi disconnected!
0004272639 [app] INFO: WiFi connected
Question is: is there a way to stop the WLAN reset from occurring?