Regular API function

simSerialSend / sim.serialSend

Description Writes data to a previously opened serial port (RS-232). See also sim.serialRead.
C synopsis simInt simSerialSend(simInt portHandle,const simChar* data,simInt dataLength)
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 return value
-1 if operation was not successful, otherwise the effective data length that was written
Lua synopsis int charsSent=sim.serialSend(int portHandle,string data)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart