An Android Application to manage devices at home
There is also backend for ehome
get value from adafruit: send GET request to http://localhost:5000/listener/username/test1
=> the value return is the current state of the the device on ADAFRUIT server
send value to adafruit: send POST request to http://localhost:5000/publisher/
with the content of the http pakage like this:
{
"name":"test1",
"value":"OFF"
}
=> the feed named "test1" will turn off on ADAFRUIT server
Vietnamese: https://techmaster.vn/posts/33693/ky-thuat-long-polling-websockets-server-sent-events-comet