This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Adding Characteristic User Description to Custom GATT Characteristics

I am using this mbed workthrough, to create a custom GATT Service in C++. However, this code only creates characteristics with UUIDs:

uint16_t percentageUUID          =   0xA002;

static uint8_t percentageValue[10] = {0};
WriteOnlyArrayGattCharacteristic<uint8_t,
        sizeof(percentageValue)> percentageChar(PercentageUUID, percentageValue, GattAttribute(descriptors) ); //was on one line

In my C# code on the smartphone connecting to my mbed based device however, I am trying to access the Characteristic.ID and Characteristic.Name attributes, which the standard characteristics in the standard profiles have, but mine do not. I Believe I need to add the Characteristic User Description (0x2901) as a GATT Attribute? However, I do not know how to do this with the mbed BLE_API?

Parents Reply Children
No Data
Related