Regular API function

simTubeWrite

Description Sends a data packet into a communication tube previously opened with simTubeOpen. The tube needs to be connected (see simTubeStatus).
C synopsis simInt simTubeWrite(simInt tubeHandle,const simChar* data,simInt dataLength)
C parameters
tubeHandle: the handle of the tube that was returned by the simTubeOpen function.
data: pointer to a data packet. simTubeWrite will copy that packet so that it can directly be released
dataLength: size of the data packet
C return value
1 if operation was successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simTubeWrite(number tubeHandle,string data)
Lua parameters
tubeHandle: Same as C-function
data: string representing a data packet (each character can have values between 0 and 255). See also simPackInts and simPackFloats if you wish to pack numbers into data.
Lua return values
Same as C-function

All regular API functions on one page