We are trying to establish a 6LoWPAN network.
Our Devices have only the 6LoWPAN connection so we need a bridge to connect them to CMS server. A small computer (something like BeagleBone) which runs Linux acts as a bridge and communicates with multiple devices via 6LoWPAN and provides TCP connection to server.
In this bridge we have some applications which provide APIs for controlling and getting data from our devices. For now it's a bit of a dummy network. Bridge gets requests from TCP and transfers them to devices.
By the way, devices not only respond to requests but also send notifications whenever an alarm situation happens.
Now we want to make the bridge smarter. We're thinking to develop a web service on the bridge and provide some functionality (like Configuration, Scheduled Control, Group Management etc.).
It won't be a problem to provide a SOAP based web service on the bridge. But we are not sure if we should develop a web service for our network.
Is opening a TCP connection from the server to all bridges a better approach or communicating to bridges via web service a better approach?