how to set BLE Device Information service characteristics programatically? | Cypress Semiconductor
how to set BLE Device Information service characteristics programatically?
I know how to set the custom characteristics of a custom service using following code -
tempHandle.attrHandle = CYBLE_CUSTOMSERVICE_NAME_CHAR_HANDLE;
tempHandle.value.val = data;
tempHandle.value.len = sizeof(data);
CyBle_GattsWriteAttributeValue(&tempHandle, 0, &CYBLE_CUSTOMSERVICE_NAME_CHAR_HANDLE, CYBLE_GATT_DB_LOCALLY_INITIATED);
But now I want to set characteristics of Device Information service programatically (i.e Serial Number String). These services are standard services. Is there any example which I can use to set standard characteristics? If I try the above code to set it, it doesn't work. I can see the constant value set using the BLE settings.
Please help. Thanks in advance.