socket.io-serial:使用 socket.io 客户端的虚拟节点串行端口实现

时间:2021-07-05 19:32:46
【文件属性】:
文件名称:socket.io-serial:使用 socket.io 客户端的虚拟节点串行端口实现
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-05 19:32:46
JavaScript socket.io-串行 使用 socket.io 作为传输的虚拟实现。 安装 npm install socket.io-serial 套接字串行端口 使用 socket.io 向远程物理设备发送/接收数据: var SocketSerialPort = require ( 'socket.io-serial' ) . SerialPort ; var io = require ( 'socket.io-client' ) ; var firmata = require ( 'firmata' ) ; // setup the socket.io client var client = io ( 'http://localhost' ) ; //create the socket.io serialport and specify the send and receive topi
【文件预览】:
socket.io-serial-master
----.gitignore(14B)
----package.json(394B)
----index.js(2KB)
----Readme.md(2KB)
----example()
--------package.json(404B)
--------firmataExample.js(710B)
--------Readme.md(860B)
--------bindExample.js(646B)
--------server.js(873B)

网友评论