Serial communication from JavaScript?

前端 未结 7 2045
感情败类
感情败类 2020-12-28 19:46

Is it possible to communicate over a machine\'s serial port through JavaScript?

I have to write a short program that sends data to a microcontroller over the serial

7条回答
  •  攒了一身酷
    2020-12-28 20:06

    This is an old question, but in case this helps anyone else, Chrome Apps have access to a serial API - http://developer.chrome.com/apps/serial.html - which might help.

    It's Chrome specific (obviously..), but Chrome is available cross-platform so might answer the question.

提交回复
热议问题