Hi,
I have just started to develop a simple home-automation application using Netduino plus 2 boards.
I have no problem developing a client to server application, in the case of a periodic data capturing scenario, in which the board proactively sends the captured data to a server (implemented on PC), and server replies back with some instructions according to the received data.
However, I wonder how it is possible to write the code for server sending instruction to clients, without clients requesting a service first and initiating the connection. This is useful for example in controlling lights. Specifically, I would like to have the control from an outside network (WAN), and not only within a LAN.
I have found few libraries and protocols for this purpose, like:
- SignalR which I am not sure can be supported by NetDunino board, and
- MQTT
But before digging into any of them, I would like to know, if these are the best suited protocols for this purpose or if there is any other library or protocol that I need to know about.
To be more specific, I am looking for a protocol/library that:
- can be implemented on and supported by Netduino boards.
- can establish a server to client connection with no initiation of the connection by the client.
- can be implemented on a WAN.
Thanks