Regular API function

simSerialCheck / sim.serialCheck

Description Lua only. Reads how many bytes are waiting to be read on a serial port (RS-232). See also sim.serialRead.
C/C++
synopsis
simInt simSerialCheck(simInt portHandle)
C/C++
parameters
portHandle: the handle returned by the simSerialOpen function
C/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
Python
synopsis