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 int result=sim.serialCheck(int portHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart