Link to Microchip Zigbee stack source written in C and its documentation: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en021878 - om_p