Programming of arduino for xbee.

I want to know if there a programming line that changes the xbee/Zigbee's MY settings without the use of X-CTU software but just by programming using arduino alone. Just changing the MY settings will do. Help please :frowning:

You can send AT commands to the XBee. That's what X-CTU does. "AT+++" puts it into configuration mode. "ATMY=xx" changes the MY value. There is a command to store the data. You'll need to consult the XBee manual to find it. The XBee will exit configuration mode after 1 second without receiving an AT command.