- Thread starter
- #281
odam2k
Well-Known Member
All the module has to do is issue this query every minute, and set the relay pin either high or low depending on whether the light is supposed to be on or off. It only needs to concern itself with "right now", not worry about how long until it changes although it is capable of reporting the time remaining... ...
I suppose this is one time where performing a query WILL be mission critical, at least withing a certain time frame... A few minutes won't hurt, but what if the network is down, the MySql Server is down, perhaps for hours.... You would hate to wake up and find that your lights are still on from the day before...
I may need a configurable "time limit" where it becomes critical, ie, if after 30 minutes it still can't get a response, do what? I suppose that would also be configurable...
I'll keep this one in the back of my head and come back to it....