03-25-2015 01:32 PM - edited 03-25-2015 01:34 PM
@crossrulz: That is a fair point. The reason I am keeping the state off the microcontroller is because I am using an Arduino and trying to conserve as much memory as I can. Currently the Arduino holds I2C code to retrieve and convert sensor data, wireless code to communicate it and I/O code to control the channels. I figured it would be better to allow the computer to do the decision making and have the MCU as a middleman.
@Bob_Schor: Thank you for the clarification! EDIT: I posted my reply before I saw your more comprehensive suggestion. Stepping away from my computer now but will take a look soon.
Best,
Yusif Nurizade
03-25-2015 06:21 PM