Connecting Photon to a local WiFi network without Internet connection

Hello,

I am trying to connect my Photon to a local WiFi hotspot I created on my Android phone. After configuring the network on my Photon, it starts rapidly flashing cyan. My phone does not have a SIM card, so there is no data connection. How can I get the Photon to not try to connect to the cloud?

thanks!

You can control attempts to contact the Particle Cloud using systems modes.
https://docs.particle.io/reference/firmware/photon/#system-modes

2 Likes

Thanks, Luke! I tried the semi-automatic and manual modes and found that calling Spark.connect() attempts to connect to Particle cloud. Not calling Spark.connect() result into the Photon not connecting to the WiFi network at all. Any ideas? Thanks!

Instead of Spark.connect(), I called WiFi.connect() inside setup() and that does exactly what I wanted. Thanks!

1 Like

Use semi-automatic and WiFi.connect()

More info here https://docs.particle.io/reference/firmware/photon/#wifi

1 Like