Serial communication from JavaScript?

前端 未结 7 2017
感情败类
感情败类 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:19

    If you have a DLL library (this includes e.g. most Windows APIs) that allows you to communicate over serial port you can invoke it from Firefox chrome code (or content code with universalxpconnect privileges) by using ctypes.

提交回复
热议问题