Confused Student is on the right track. I recommend skipping ZigBee entirely, and implementing with 802.15.4.
You can use BeeKit to generate sample code for 802.15.4. I recommend starting with the "My Star Network App" demo. Generate coordinator and end device code, run that, and then start modifying.