Write XBee parameters
To write the value of an XBee setting, use the command xbee set. This command allows you to set the value of an XBee parameter for the local XBee or of any remote XBee device in the network.
Use xbee set ? to display its help and syntax.
> xbee set ? Sets the value of an XBee parameter. Optionally, the value can be set but not saved, or not applied. Syntax: set XBEE-ID PARAMETER VALUE [no-apply] [no-save] Parameters ------------------------------------------------------------------------------- XBEE-ID XBee ID (MAC or node ID). (Required) PARAMETER Parameter. (Required) VALUE Value. (Required) no-apply no-apply no-save no-save
- XBEE-ID—required—is the XBee identifier, that can be the 64-bit address or the node identifier.
- PARAMETER—required—is the XBee parameter to write.
-
VALUE—required—is the new value of the provided PARAMETER. It is interpreted as:
-
A string if it is between single quotes.
-
An integer value without quotes. You can use prefixes to specify its format:
-
0x or 0X: hexadecimal value, for example, 0x0A.
- 0o or 0O: octal value, for example, 0o12.
- 0b or 0B: binary value, for example, 0b1010.
- No prefix: decimal value, for example, 10.
-
-
- By default, the value is applied—the new value takes effect immediately—and saved—the new value is internally programmed so it is applied the next time the XBee device boots.
Optionally, you can use:- no-apply not to apply the value immediately and wait for a specific apply command (AC).
- no-save not to store the value permanently.
- The set command does not return anything when it is successful. Otherwise, the error displays.
For example, to set to 0x01 the value of D2 (AD2/DIO2 Configuration) of an XBee which its 64-bit address is 0013A200DDDDDDD0, enter the following command:
Example: xbee set
> xbee set 0013A200DDDDDDD0 D2 0x01 > xbee get 0013A200DDDDDDD0 D2 0x01 >