Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
179
rated 0 times [  180] [ 1]  / answers: 1 / hits: 18989  / 9 Years ago, wed, november 4, 2015, 12:00:00

I have a device that uses Modbus TCP. I want to read data from it and display it on a webpage (Without an in between server).



I have found a project that does almost this exact same thing as a Chrome extension:



https://github.com/Cloud-Automation/chrome-modbus



It uses this in the javascript code: chrome.sockets.tcp



I was hoping that I could do the same thing on my webpage using WebSockets.



It seems that websockets would work on my webpage (acting as the client), sending and receiving information from the device (acting as the server). It doesn't seem that websockets is affected by cors.



Does anybody have pointers on where I could start on this? (Or a javascript library would be great)



Is this possible?


More From » tcp

 Answers
23

I did get this solved without a server in between. I did it using Chrome Sockets link I also made it work using a cordova app for smart phones. Firefox has a sockets api as well, but did not attempt to figure it out for that browser.


[#64504] Monday, November 2, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
louiemarvinm

Total Points: 473
Total Questions: 103
Total Answers: 94

Location: Samoa
Member since Mon, Nov 8, 2021
3 Years ago
louiemarvinm questions
Tue, Jan 4, 22, 00:00, 2 Years ago
Thu, Nov 12, 20, 00:00, 4 Years ago
;