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.
2.但是我在AF_DATA_CONFIRM_CMD消息里做如下处理,重新发起了ZDP_MgmtNwkDiscReq()
case AF_DATA_CONFIRM_CMD:
// This message is received as a confirmation of a data packet sent.
// The status is of ZStatus_t type [defined in NLMEDE.h]
// The message fields are defined in AF.h
afDataConfirm = (afDataConfirm_t *)MSGpkt;
// sentEP = afDataConfirm->endpoint;
SentStatus = afDataConfirm->hdr.status;
if(SentStatus != ZSuccess )
{
您可以通过APSC_MAX_FRAME_RETRIES设置重发次数,在您发送失败后会自动进行重新发送
The number of times that the message is retried (if APS ACK message isn’t received) and the timeout between retries are configuration items in
f8wConfig.cfg. APSC_MAX_FRAME_RETRIES is the number of retries the APS layer will send the message if it doesn’t receive an APS ACK before giving up. APSC_ACK_WAIT_DURATION_POLLED is the time between retries.