I want to send Data to the UART from JavaScript. No question (yet) about initialising the UART, but how to send data from JavaScript?
Asked
Active
Viewed 242 times
1
-
1Did you do some research, such as googling for 'raspberry pi javascript uart' (or 'serial' instead of 'uart')? – Dirk Feb 27 '19 at 13:08
-
2Javascript is sandboxed on the browser in the client.(not on the Pi) You need a back end service like Node, Python, AspNetCore which can talk to the hardware. You client then sends requests to the server, which then does UART stuff – Piotr Kula Feb 27 '19 at 14:56
-
1No a question about initialising the UART? Then it is a pure JavaScript question and does not belong to Raspberry Pi. – Ingo Feb 27 '19 at 17:19
1 Answers
1
I do just that using Node-RED on my Pi, it has serial nodes as part of the basic install. See Node-RED website
Bra1n
- 1,251
- 7
- 7