Regular API function


Description Writes data to a previously opened serial port (RS-232). See also simSerialRead.
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 number charsSent=simSerialSend(number portHandle,string data)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page