XBee sample code

Read, write xbee packet in API mode