node-serialport 是一个 Node.js 的包,用来对串口数据进行读写操作。基本示例代码:var SerialPort = require("serialport").SerialPort var serialPort = new SerialPort("/dev/tty-usbserial1", {   baudrate: 57600 }, false); // this is the openImmediately flag [default is true] serialPort.open(function (error) {   if ( error ) {     console.log('failed to open: ' error);   } else {     console.log('open');     serialPort.on('data', function(data) {       console.log('data received: '   data);     });     serialPort.write("ls\n", function(err, results) {       console.log('err '   err);       console.log('results '   results);     });   } });罗列所有串口:var serialPort = require("serialport"); serialPort.list(function (err, ports) {   ports.forEach(function(port) {     console.log(port.comName);     console.log(port.pnpId);     console.log(port.manufacturer);   }); });串口配置:baudRatedataBitsstopBitsparityrtsctsxonxoffxanyflowControlbufferSizeparserencodingdataCallbackdisconnectedCallbackplatformOptions - sets platform specific options, see below.目前已有很多项目在使用这个包进行串口处理:Johnny-Five - Firmata based Arduino Framework.Cylon.js - JavaScript Robotics, By Your Command.node-l8smartlight (source) A node library to control the L8 Smartlight via Bluetooth or USB portfirmata Talk natively to Arduino using the firmata protocol.tmpad source - a DIY midi pad using infrared, arduino, and nodejs. Videoduino - A higher level framework for working with Arduinos in node.js.Arduino Drinking Game Extravaganza - AKA "The Russian" a hexidecimal drinking game for geeks by Uxebu presented at JSConf EU 2011.Arduino controlling popcorn.js - Controlling a popcorn.js video with an Arduino kit.Robotic JavaScript - The first live presentation of the node-serialport code set as presented at JSConf EU 2010.devicestack - This module helps you to represent a device and its protocol.reflecta A communication protocol that combines Arduino Libraries and NodeJS into an integrated system.rc4pt-node - Control Popcorntime with an
2021-09-13 10:29:17 178KB 开源项目
1
亚历山大 自托管、Node 驱动的电子书库和 OPDS 服务器 开发设置 依赖项: 咕噜声 咖啡脚本 首先npm install 要运行监视和自动构建过程,只需键入grunt 启动服务器, coffee server.coffee 然后,您可以将浏览器指向http://localhost:3000
2021-09-13 08:42:28 6KB CoffeeScript
1
Express_Node_xiaofang 在CentOS使用宝塔面板快速部署Express项目 实现步骤 购置服务器 系统CentOS 部署宝塔面板 更改宝塔相关信息 极速安装web应用的软件,期中用到了PM2来部署Node项目 1.部署宝塔面板 ssh连接服务器后 输入:yum install -y wget && wget -O install.sh && sh install.sh 一键部署面板 2.极速安装web应用的软件 一开始面板会推荐你安装一些软件 直接安装即可:Nginx等等会直接安装好 因为要部署Node的项目 需要安装PM2来管理 3.PM2来部署Node项目
2021-09-12 16:52:53 232KB JavaScript
1
node+mongo实现增删改查的小项目
2021-09-11 09:07:08 7.56MB nodejs mongodb express javascript
1
托管项目 Node.js的ESC / POS打印机驱动程序 可用软件包: 例 const escpos = require ( 'escpos' ) ; // install escpos-usb adapter module manually escpos . USB = require ( 'escpos-usb' ) ; // Select the adapter based on your printer type const device = new escpos . USB ( ) ; // const device = new escpos.Network('localho
2021-09-10 18:47:25 377KB nodejs printer usb hardware
1
Express 模块实现数据库增删改查 数据库用JSON文件模拟
2021-09-10 18:03:39 5.13MB Node express
1
适用与window10系统,一路下一步
2021-09-10 14:08:23 27.92MB vue-cli node
1
nodejs开发的一个项目,源代码附上,包括部署方式里面都有!欢迎下载
2021-09-10 10:45:43 24.91MB node
1
使用 koa 写了一个小网站,上传 word 文档即可将 word 转成 html,并且有可编辑 html。编辑好了之后只需要点击上传就能将 html 生成访问链接
2021-09-10 10:24:15 79KB Node.js开发-其它杂项
1
安装node.js.doc
2021-09-09 18:06:56 720KB node.js
1