Hi,
I’m attempting to use manual mode on the Photon to manage behavior for different states of WiFi/cloud connectedness. I’m finding, however, that some of the connection behavior isn’t truly manual. I’m currently attempting to connect to a WiFi router that is disconnected from the internet in order to test behavior when we’re connected to a local network but not the Particle Cloud. I’m finding that, when Particle.connect() fails to establish a connection with the cloud, our connection to the WiFi network is reset. At this point the module will once again connect to WiFi, attempt to connect to the cloud, fail, and be disconnected from the WiFi network, rinse and repeat.
I can understand this behavior for automatic mode, but it seems like manual mode should give us the ability to handle the Particle.connect() failure in the user-code. Regardless of cloud connectivity, we want to be able to communicate with our device over the local network, and so we need to be able to maintain our WiFi connection when our cloud connection fails. I understand that, once the connection fails the first time, we can call Particle.disconnect() to stop the WiFi disconnect/reconnect loop, but it’s very inconvenient to have a potential disconnect/reconnect every time we try to connect to the cloud. We use manual mode so that we have finer control over state management as it pertains to WiFi/cloud connectedness, but this case doesn’t provide us that control.
Thanks,
Derek