Regular API function

simSerialCheck / sim.serialCheck

Description Reads how many bytes are waiting to be read on a serial port (RS-232). See also sim.serialRead.
C synopsis simInt simSerialCheck(simInt portHandle)
C parameters
portHandle: the handle returned by the simSerialOpen function
C return value
-1 if operation was not successful, otherwise the number of bytes that are waiting to be read
Lua synopsis number result=sim.serialCheck(number portHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page