I
I
Ilya2018-02-02 21:54:05
JavaScript
Ilya, 2018-02-02 21:54:05

How to read data from COM ports on the client side?

At one time, I made a server on a node: Arduinka was connected
to the computer on which the server was running, data was constantly read from it and displayed in real time on the client side.
Everything worked perfectly. But now I had to roll the node to a remote server, and I can only connect the Arduino on the client side, and accordingly, no data is transmitted or read by the server, since there is no access to the COM ports on the client side from the browser ...
What advise in this situation?
Link to source repository:

https://github.com/pursentiy/cockpit

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-02
@alexr64

on the client side

forget that he is a client, raise a node, drop api to info. Let's say, web sockets, so that in realtime.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question