Regular API function

simSerialSend / sim.serialSend

Description Lua only. Writes data to a previously opened serial port (RS-232). See also sim.serialRead.
C/C++
synopsis
simInt simSerialSend(simInt portHandle,const simChar* data,simInt dataLength)
C/C++
parameters
portHandle: the handle returned by the simSerialOpen function
data: a pointer to the data that should be sent
dataLength: length of the data to be sent
C/C++
return value
-1 if operation was not successful, otherwise the effective data length that was written
Lua
synopsis
int charsSent=sim.serialSend(int portHandle,buffer data)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis

<