English
Language : 

AN91162 Datasheet, PDF (41/43 Pages) Ramtron International Corporation – Creating a BLE Custom Profile
Creating a BLE Custom Profile
3. In the main application, send the data through a notification whenever data is available and notifications have been
enabled from the GATT client.
/* 'notificationHandle' is handle to store notification data parameters */
CYBLE_GATTS_HANDLE_VALUE_NTF_T
notificationHandle;
/* Check if the notification bit is set or not */
if(startNotification & NOTIFY_BIT_MASK)
{
/* Update Notification handle with new data*/
notificationHandle.attrHandle = CYBLE_CUSTOM_CHAR_HANDLE;
notificationHandle.value.val = &data;
notificationHandle.value.len = dataLength;
/* Report data to BLE component for sending data by notifications*/
CyBle_GattsNotification(connectionHandle, &notificationHandle);
}
www.cypress.com
Document No. 001-91162 Rev. *A
41