摘要: 调硬件开门 Eapp.this.kaimen = function (name, cmds) { if (typeof cmds == "string") { cmds = [cmds]; } JsBridge.require("SerialPort").open({ name: name, sto 阅读全文
posted @ 2020-10-09 09:53 野鹤亦闲云 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 开灯 function su_kaideng(name, cmds) { JsBridge.require("SerialPort").open({ name: "Com1", //看具体设备 stop_bits: 1, baud_rate: 9600, data_bits: 8, parity: 阅读全文
posted @ 2020-10-09 09:50 野鹤亦闲云 阅读(112) 评论(0) 推荐(0) 编辑