Request-Respond commnication of Jennic WSN.
1. Register Simple Description with one Input Cluster at the Receiver point.
2. Use afdeDataRequest with transaction.uFrame.sKvp.eCommandTypeID = SET_ACKNOWLEDGMENT, ACKNOWLEDGED_TRANSMISSION(OR with APS_TXOPTION_NONE) param and at the Sender point.
3. Make sure  JZA_bAfKvpObject return TRUE, at the Receiver point.

When the KVP message which the Sender sent, arrived the Receiver point, a response message will be send to the Sender by the protocol stack automatically, to tell the Sender the KVP message has been received by the Receiver.

--------------------------------------------------------------Code---------------------------------------------------------------------------------------------
Sender point:

Communication of Jennic WSN(Wireless Sensor Network)PRIVATE void vSendFrame(void)
}

Get the Respond:

}

Receiver point:
Register simple description.

Communication of Jennic WSN(Wireless Sensor Network)PRIVATE void vAddDesc(void)
}

Recv KVP message:

}

--------------------------------------------------
Fine day!
 

 

相关文章:

  • 2021-09-20
  • 2021-09-11
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2022-01-03
  • 2021-06-30
  • 2021-08-19
  • 2021-08-17
相关资源
相似解决方案