1

I want to send Data to the UART from JavaScript. No question (yet) about initialising the UART, but how to send data from JavaScript?

Piotr Kula
  • 17,307
  • 6
  • 65
  • 104
mexman
  • 11
  • 1
  • 1
    Did you do some research, such as googling for 'raspberry pi javascript uart' (or 'serial' instead of 'uart')? – Dirk Feb 27 '19 at 13:08
  • 2
    Javascript 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
  • 1
    No 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 Answers1

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