BLE_ANPS_SendNewAlert

C

uint16_t BLE_ANPS_SendNewAlert(uint16_t connHandle, uint8_t catId, uint8_t numAlert, uint16_t txtStrLen, const uint8_t *p_txtStr);

Description

Sends a new alert notification to a connected peer device.

Parameters

ParameterDescription
[in] connHandleThe connection handle.
[in] catIdThe category ID of the alert. Refer to ANPS category identifiers for possible values.
[in] numAlertThe number of new alerts.
[in] txtStrLenThe length of the text string information. Must be less than or equal to (MTU - 5).
[in] p_txtStrPointer to the text string information.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sent the new alert notification.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_NO_RESOURCENo available buffer to transmit the new alert notification.
MBA_RES_INVALID_PARAInvalid parameters.