BLE_ANCS_PerformNtfyAction

C

uint16_t BLE_ANCS_PerformNtfyAction(uint16_t connHandle, uint32_t ntfyId, BLE_ANCS_ActionId_T actId);

Description

Performs an action on a specific iOS notification.This function sends a command to the iOS device to perform a specified action on a notification identified by its unique identifier (UID). The action to be performed is determined by the action ID provided.

Parameters

ParameterDescription
[in] connHandleThe handle for the current connection with the iOS device.
[in] ntfyIdThe 32-bit UID of the iOS notification on which to perform the action.The ntfyId can be retrieved when receiving BLE_ANCS_EVT_NTFY_ADDED_IND or BLE_ANCS_EVT_NTFY_MODIFIED_IND or BLE_ANCS_EVT_NTFY_REMOVED_IND events.
[in] actIdThe action to perform on the notification. Refer to BLE_ANCS_ActionId_T for possible values.

Return values

Return valueDescription
MBA_RES_SUCCESSCommand successfully sent to perform the action on the notification.
MBA_RES_FAILThe operation is not permitted.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters were provided. Possible reasons include: - Invalid connection handle.- Invalid write parameters. See GATTC_WriteParams_T for valid values.
MBA_RES_NO_RESOURCENo available resource to send write operation.
MBA_RES_BUSYThe GATT Client is currently busy with another operation.