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?

  • 1
    Did you do some research, such as googling for 'raspberry pi javascript uart' (or 'serial' instead of 'uart')? – Dirk Feb 27 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 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 at 17:19
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.