andrewrapp / xbee-arduino

Arduino library for communicating with XBee radios in API mode
GNU General Public License v2.0
334 stars 162 forks source link

Is it possible to programmatically modify the configuration values of the Xbee? #76

Closed sdiaz-qkt closed 5 years ago

sdiaz-qkt commented 5 years ago

Hello,

I was wondering if it was possible to change the DL and DE values of the Xbee configuration without using XCTU, and instead, using this library. So far I have been able to only read the parameters, and I can't seem to find any documentation to help me do this.

Thanks in advance for the help.

JChristensen commented 5 years ago

Yes. Use an AtCommandRequest object to query or set parameters. Plan to spend some time with the documentation that comes with the library and also with the XBee User's Guide (for example.) I found it useful to read the User Guide frame descriptions (e.g. AT Command frame 0x08) along with the relevant class from the library. Destination address is part of the transmit request frame (frame type 0x10, use the ZBTxRequest class), so it's not necessary to set the destination for each transmission via an AT command.