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
Send new alert.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle. |
[in] catId | Category Id. See Category Id . |
[in] numAlert | Number of new alert. |
[in] txtStrLen | Text string information length. Length must be less than or equal to (MTU - 5). |
[in] p_txtStr | Text string infomation. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully send new alert. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_NO_RESOURCE | No available buffer for transmitting new alert. |
MBA_RES_INVALID_PARA | Invalid parameters. |