Regular API function

simSerialCheck

Description Reads how many bytes are waiting to be read on a serial port (RS-232). See also simSerialRead.
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=simSerialCheck(number portHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page