TLScott

02 2019 档案

node.js安装使用express框架
摘要:官网:http://www.expressjs.com.cn/ 使用方式(如果后面需要添加路由等推荐第二种方式,不然需要需要手动添加):一、自己动手搭建 1、 新建项目文件夹,如test,并在命令行中进入目录: cd test2、初始化 npm init,简单使用不需要配置就全部回车跳过(入口文件默 阅读全文

posted @ 2019-02-21 11:42 TLScott 阅读(510) 评论(0) 推荐(1)

Node.js 串口通讯 node-serialport 使用说明
摘要:官网:https://serialport.io/en/ 安装:npm install serialport Parsers说明:parser-byte-length:大概意思是定义了一个长度为length字节的buffer,串口收到数据后先放到buffer中,放满了才发送给程序,超出的部分等buf 阅读全文

posted @ 2019-02-09 23:47 TLScott 阅读(12516) 评论(0) 推荐(0)

导航