摘要:
调硬件开门 Eapp.this.kaimen = function (name, cmds) { if (typeof cmds == "string") { cmds = [cmds]; } JsBridge.require("SerialPort").open({ name: name, sto 阅读全文
摘要:
开灯 function su_kaideng(name, cmds) { JsBridge.require("SerialPort").open({ name: "Com1", //看具体设备 stop_bits: 1, baud_rate: 9600, data_bits: 8, parity: 阅读全文