I’m currently working on a project for which I would like to use the photon but not need it to connect to the internet whatsoever. I realize this kinda ignores some of the reasons that make particle boards so cool, but I’m already deep into this project and it’s crucial that I need not rely on any internet.
Just to clarify, I’d like to be able to flash a program to the photon (this part could be done online, as long as the photon is able to lose power, regain power, and not have to connected to the cloud again to run the same program), run it, lose and regain power any number of times, and never have to connected to the internet, just run the same program that was initially flashed to the photon.
Maybe this is simpler than I think, but I’m new to using these boards so I’m not sure! Thanks in advance for any help.
Use SYSTEM_MODE(MANUAL) to stop the Photon from automatically connecting to Wifi/Cloud.
In a recent project of mine, I used MANUAL mode, but allowed a quick press of the Mode button to toggle the Cloud connection on, so that I could do OTA firmware updates as-needed. You can see the code here:
Note the button handling code at the beginning of the loop(), which calls out to my toggleCloud() function.