I Have a couple projects running in my house (3 Cores and 4 Photons), but now im decide to build an project to control my lights. The circuit it’s really simple, it consist in activate relays with momentary switches (optionally controlled over web), one click, the light goes on, click again and light goes off. Simple right? But here is the problem:
The code works really fine when the Photon is connected to the cloud, but when i lose my internet/Wifi connection (Or when i booting up without it) the Photon freezes my code trying to reconnect, and while it does it, i cant turn my light ON/OFF…
So i try different methods to solve this (Photon in Manual Mode / Make an interrupt to keep my lights working during the connection/ Turn Wifi.off() and many other), but without success.
Anyone has a clue to how i can do this? I just need to run my code in a “Separated Thread”, to keep my lights running, while Photon tries to reconnect
I hope i can solve this, Thank you guys!