BLE_ANPS_SendUnreadAlertStat
C
uint16_t BLE_ANPS_SendUnreadAlertStat(uint16_t connHandle, uint8_t catId, uint8_t unreadCnt);
Description
Sends an unread alert status notification to a connected peer device.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle. |
[in] catId | The category ID of the alert. Refer to ANPS category identifiers for possible values. |
[in] unreadCnt | The count of unread alerts. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sent the unread alert status notification. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_NO_RESOURCE | No available buffer to transmit the unread alert status notification. |
MBA_RES_INVALID_PARA | Invalid parameters. |