BLE_ANCS_GetAppAttr

C

uint16_t BLE_ANCS_GetAppAttr(uint16_t connHandle, uint8_t *p_appId, BLE_ANCS_AppAttrsMask_T bitmask);

Description

Retrieves attributes for a specific app on an iOS device.

Parameters

ParameterDescription
[in] connHandleThe handle for the current connection with the iOS device.
[in] p_appIdPointer to a null-terminated string representing the app's identifier. App Identifier can be retrieved when receiving BLE_ANCS_EVT_NTFY_ATTR_IND event.
[in] bitmaskBitmask specifying which app attributes to retrieve. Refer to BLE_ANCS_AppAttrsMask_T for possible values.

Return values

Return valueDescription
MBA_RES_SUCCESSCommand successfully sent to retrieve app attributes.
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_RESOURCE|Insufficient resources to perform the operation.| MBA_RES_BUSY|The GATT Client is currently busy with another operation.|