1.2.2.3.2.2.4.5 BLE_ANPS_SendNewAlert

C

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

Description

Send new alert.

Parameters

ParameterDescription
[in] connHandleThe connection handle.
[in] catIdCategory Id. See Category Id .
[in] numNumber of new alert.
[in] txtStrLenText string information length. Length must be less than or equal to (MTU - 5).
[in] p_txtStrText string infomation.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully send new alert.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_NO_RESOURCENo available buffer for transmitting new alert.
MBA_RES_INVALID_PARAInvalid parameters.