串口操作模块
串口读写模块
new
function serial:new(port, baudrate, data_bits, parity, stop_bits, flowcontrol)
end参数说明
open
funciton serial:open()
endclose
function serial:close()
endwrite
flush
in_queue_clear
in_queue
device
fd
set_baud_rate
baud_rate
set_data_bits
data_bits
set_parity
parity
set_flow_control
flow_control
set_dtr
dtr
set_rts
rts
start
参数说明
Last updated
Was this helpful?