关闭已打开串口。
device.open(config).close()
无参数。
port = device.open({type: 'serial', port: 'COM3'}) result = port.close() // 输出:true print result