增加函数AF_DataRequestCallback和AF_DataConfirmCallback,可以在单次使用发送函数的时候,带上一个回调函数,显示Confirm的发送结果。
要在头文件增加下列typedef
// Typedef for callback function to control the AF Data Confirm
typedef void (*pDataCnfCB)(uint8 status, uint8 endpoint, uint8 transID, void* param);
typedef struct
{
void* next;
uint8 endpoint;
uint8 transID;
void* param;
pDataCnfCB cnfCB;
} afDataCnfList_t;