XBee sample code (read, write, AT commands)