send_serial command definition

The send_serial command sends serial data to a specific XBee node in your network. To use this command, add it to an SCI request inside the RCI do_command element.

Command syntax

The send_serial command must follow this syntax:

<send_serial addr=”{address|broadcast}”                  encoding={“base64”|”utf-8”}”>value</send_serial>

Command attributes

Command body (value)

The command body contains the data to be transmitted to the specified XBee node of the network. The command body content depends on the value of the encoding attribute:

Note Whitespace is not significant when the XBee Industrial Gateway Python application processes base64. However, whitespace in UTF-8 is significant, because it is impossible to determine whether the whitespace should be considered as such and thus take the conservative approach of keeping it significant and passing it on.

Request and reply examples

The error element contains an id attribute indicating the error identifier. For more information regarding the possible XBee Industrial Gateway Python application error identifiers, see XBee Industrial Gateway Python application command errors.

The desc element displays the meaning of the error identifier, and the hint element provides an explanation of what caused the received error.