ble nano hid over gatt
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDServiceBase.cpp
- Revision:
- 55:f01a31103685
- Parent:
- 54:899fc2b0a76b
- Child:
- 59:2d6c0bff2151
--- a/HIDServiceBase.cpp Tue Aug 30 13:18:00 2016 +0000 +++ b/HIDServiceBase.cpp Tue Aug 30 14:05:56 2016 +0000 @@ -49,8 +49,6 @@ (uint8_t *)&outputReportReferenceData, 2, 2), featureReportReferenceDescriptor(BLE_UUID_DESCRIPTOR_REPORT_REFERENCE, (uint8_t *)&featureReportReferenceData, 2, 2), - batteryServiceExternalReportReferenceDescriptor(BLE_UUID_DESCRIPTOR_EXTERNAL_REPORT_REFERENCE, - (uint8_t *)&UUID_BATTERY_LEVEL_CHAR, 2, 2, false), protocolModeCharacteristic(GattCharacteristic::UUID_PROTOCOL_MODE_CHAR, &protocolMode, 1, 1, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ @@ -84,7 +82,7 @@ reportMapCharacteristic(GattCharacteristic::UUID_REPORT_MAP_CHAR, const_cast<uint8_t*>(reportMap), reportMapLength, reportMapLength, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ, - reportMapDescriptors(), 1), + reportMapDescriptors(), 0), HIDInformationCharacteristic(GattCharacteristic::UUID_HID_INFORMATION_CHAR, HIDInformation()), HIDControlPointCharacteristic(GattCharacteristic::UUID_HID_CONTROL_POINT_CHAR, @@ -204,10 +202,11 @@ } GattAttribute** HIDServiceBase::reportMapDescriptors() { + return 0;/* static GattAttribute * descs[] = { &batteryServiceExternalReportReferenceDescriptor, }; - return descs; + return descs;*/ } HID_information_t* HIDServiceBase::HIDInformation() {