I’m having some problems with figuring how to keep my program running on my Photon in case the photon disconnects from the cloud or wifi for whatever reason. [I have come across semi-automatic/manual to be further complicated with SYSTEM_THREAD(ENABLED)/ WiFi.off()/ WiFi.disconnect()………]
A lot of the threads are many many years old and even refer to the core so I’m not sure if the photon 2019 has the same issues. Apparently it was not going to be like this when the photon came out?
My photon receives serial data from a wiegand key pad (or fob) and then activates an electric strike allowing the door to be opened if the password is correct.
I have added a Blynk terminal so I can change the password from a far and also if someone presses any keys/time stamps etc it will show up in the Blynk terminal on my phone.
I will rarely change the password but someone has to come through the door at least 10 times per day. Can’t afford for the program to block and to be locked outside.
An offline version on an Arduino has been running fine for about 6 months with no problems, minus any of the online fun stuff. And it’s such a pain to change the password - I have to get up a ladder with a laptop.
What I need is for my program to run all the time even if there are problems with the net/router/cloud etc. And then to reconnect by itself once the problems go away.
[I could use an Arduino to open and close the door then just use a photon to change the password etc. but I was hoping to use as few components as possible.]
Can this be done on just photon? [I already have it running well on the photon, it’s just the blocking issue]