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:
Get the Respond:
Receiver point:
Register simple description.
Recv KVP message:
--------------------------------------------------
Fine day!