Im in the process of building an IOT device that will connect to an energy monitor and read current energy available (power generated - power consumed) and control a device - ie turn it on if there is sufficient energy available, turn it off if there is insufficient power availble.
An extension would be to control the power consumtion of the connected device - ie Limitpower available to say a hotwater heater.
There is nothing realy unique about what im doing but In my design consideration I Was wondering what is the "best Practice" for an IOTdevice - should I maintain a permant connection to the AP and poll the server as required or is it more appropriate to establish a new connection to the AP each time?