rom wrote:easiest way would be a GET Request from the Client every say 200-500ms. Answer with the ADC Value of the Potentiometer. Look for the TCP Server example and substitute conn:send(ADC_Value).
Hey. Thank You for your advise.
Actually, I have not established a Client-Server platform.
I have defined all end devices as servers. If I implement the Client-Server protocol, I will need to have an extra device acting as a server. Currently I have 2 WiFi modules. One has a Bulb to turn on and off. The other has a Potentiometer and a Led.
I am receiving the changed Potentiometer values from the POT. But for that I need to click a button (command from android) to receive the updated value of the POT. I do not want to do that. As soon as the value exceeds a threshold, I should get a notification.
I tried looping it inside a IF loop. But then the updated value just keeps on flashing on the Android screen. It needs to just Flash once saying "threshold crossed" and then stop.