socket.io serial:使用socket.io客户端的虚拟节点串行端口实现
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