This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

放福利,改进的AF收发函数

增加函数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;