刷新已打开串口的输出缓冲。
device.open(config).flush()
无参数。
port = device.open({type: 'serial', port: 'COM3'}) result = port.flush() // 输出:true print result