MW_MISC_EncryptAdvData

C

uint16_t MW_MISC_EncryptAdvData(MW_MISC_EncAdvData_T *p_encAdvData);

Description

Encrypt advertising data.

Note

This function encrypts p_payload, package it as an Encrypted Data data type, and append the AD structure to p_advData. The length will increase by 11 bytes. The application must ensure that p_advData has sufficient space for the appended data.

Return values

Return valueDescription
MBA_RES_SUCCESSEncryption successfully.
MBA_RES_FAILEncryption failed.
MBA_RES_OOMInternal memory allocation failure occurred.