NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char RemoteConnectionWrite ( byte  conn,
byte  buffer[] 
)
inline

Write to a remote connection.

This method tells the NXT firmware to write the data in the buffer to the device on the specified connection. Use RemoteConnectionIdle to determine when this write request is completed.

Parameters
connThe connection slot (0..4). Connections 0 through 3 are for bluetooth connections. Connection 4 refers to the RS485 hi-speed port. See Remote connection constants.
bufferThe data to be written (up to 128 bytes)
Returns
A char value indicating whether the function call succeeded or not.
Warning
Writing to the RS485 hi-speed connection requires the enhanced NBC/NXC firmware
Examples:
ex_RemoteConnectionWrite.nxc.