Skip to content

LuaSPortSerial

LuaSPortSerial is an object type. You don't create it directly: you get one from another call, then call its methods with a colon, e.g. serial:empty().

Methods

Function Description Since
empty() Return true if the read buffer is empty. 1.1.0
size() Return the read buffer size. 1.1.0
read() Return the read buffer. 1.1.0
write() Write a buffer. 1.1.0
flush() Flush a buffer. 1.1.0