Sample design reference on device communicating through TCP/IP
Hi,
I am having a design scenario whereby the device to be communicating to ThingWorx server will be communicating through GPRS connection and TCP/IP (example: a GSM modem that take sensor reading and send data to backend system through GPRS & TCP/IP). No device side code change is possible as we don't own the device but we DO have the device specific communication protocol/specification. EMS and LUA is NOT possible to be deployed in the device.
My guess is we could approach the system design in this case whereby:
1. Deploy ThingWorx server, EMS and LUA all under one server/cloud server instance.
2. Create a TCP/IP listener that could route the incoming message to LUA & EMS, so that these data can be channeled back to ThingWorx platform.
3. Configure LUA scripts for it to 'talk' to the TCP/IP listener / daemon and route data through.
Can you please advise if this approach is OK, or ThingWorx do recommend any other approach for such scenario?
Also, is there any sample LUA script, TCP/IP listener daemon code etc and sample implementation that could be provided for reference which is directly applicable for this scenario?
Thanks in advance for your prompt support!

