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 |
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 |
|