向已打开串口写入数据。
device.open(config).write(data)
port = device.open({type: 'serial', port: 'COM3'}) result = port.write('BT') // 输出:2 print result