as per the title, i am asking for members views on what whould be an acceptable way to alert a android phone that the device is not responding or is not powered up or no wifi. I have currently an imp01 with a simple setup, a led on pin1 and a led on pin2. I have a very basic app created in appinventor on my android phone, (galaxy note2), that when i press a button , it sends to agent to turn on led1, on pin1 on the imp, press again turn off led1, press another button turn on led2, press again turn off led 2, fine that works ok, as this is all in front of me working. I have the agent sending back to my phone the time that the event was triggered as well, so when i press the buttons on the phone i get back " Red led turned on at 09:42.27 ", the time created from the agent, regardless of whether the device actually was online or not. included in my code was server send, so i can see on the console the agent time sent, and can see if the device is online or not in the IDE, but from the user of the android the feedback is really only confirming that i made contact with the agent, not the device. What could i use, back from the device as well to my app, i thought about maybe using a pin to read a ADC value and send that to my phone, or maybe create a random number and send that, maybe something else, not sure. If i replaced the leds with a relay, and was say opening /closing a door striker, there would always be a niggling worry, did the door actually close or open. The workaround may be so simple, however i am working from a very limited knowledge of the Imp and the agent/imp relationship, everthing i have achieved upto now is from example code in the docs and little snippets from the forum, learning as i go. Im not after anyone writing code for me, more pointers, i want to learn as much as i can by myself.
Thanks for any replies, TOM.