I read Ember Znet Stack and I see that I can config a message with APS security by handling callback: emberAfClusterSecurityCustomCallback.
In my case, I have 2 device (router) A and B. These device binding together by using Coordinator send Bind Request to A. After that A will binding with B. Currently, A can send command to device B with Network Key.
I want to A send command to device B with APS security. How to to that? Can you guide me setup this functionality. Thanks.
If you want to enable the APS security for the message, you can configure the EMBER_APS_OPTION_ENCRYPTION for the option of the apsFrame. For example:
apsFrame->options |= EMBER_APS_OPTION_ENCRYPTION