Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 10 months ago.
Vanishing Characteristics after adding additional descriptors
Hi Communiy,
i encountered a problem similar to this one here: https://developer.mbed.org/questions/7492/GattAttibute-Descriptors-preventing-Char/
When adding some additional descriptors such as ""BLE_UUID_DESCRIPTOR_CHAR_PRESENTATION_FORMAT" by using the following code:
uint8_t value_1[] = {0x0E, 0xFF, 0xA5, 0x27, 0x01, 0x00, 0x00}; data to form the presentation format GattAttribute attr_format(BLE_UUID_DESCRIPTOR_CHAR_PRESENTATION_FORMAT, value_1, 7, 7); GattAttribute* attr_table[] = { &attr_format }; GattCharacteristic char_pressure(char_pressure_uuid, tx_value, 1, TXRX_BUF_LEN, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY, attr_table, sizeof(attr_table) / sizeof(GattAttribute*));
all following additional characteristics are not recognized by the nRF51822-DK. As described in this post here: https://github.com/ARMmbed/ble/issues/38 the issues should be solved.
Am i doing something wrong or is there something broken in the mbed SDK?
Best regards
jikelmon
EDIT:
I want to have following result (exported from another device with nRF Connect for Android):
Format: signed 16-bit integer (0xE0) Exponent: -1 (0xFF) Unit: pressure (pound-force per square inch) (0x27A5) Namespace: Bluetooth SIG Assigned Numbers (0x01) Description: unknown (0x00, 0x00)