I have a user device with a TCP / IP stack that sends bytes every 5 seconds to a remote IP address.
On this remote IP, I create a site with rails 3.1.3, which will have to receive, store and display the data sent by the custom device.
I was thinking that the TCP socket is running in the background, something like this , but I have no clue on how to integrate this with the rails site. Where to place it, how to run it and how to distribute data in views.
Does anyone know how I will act?
source share