Skip to content

Commit b0d0b5b

Browse files
committed
Fix Jira 670 A compile error occurs with two BLE methods with the same name
1. Add method uuid_cstr in BLEAttribute class. 2. Remove the duplicate file.
1 parent fba645e commit b0d0b5b

File tree

3 files changed

+12
-125
lines changed

3 files changed

+12
-125
lines changed

libraries/CurieBLE/src/BLEAttribute.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ BLEAttribute::uuid() const {
6767
return _uuid_cstr;
6868
}
6969

70+
const char*
71+
BLEAttribute::uuid_cstr() const {
72+
return _uuid_cstr;
73+
}
74+
7075
struct bt_uuid *BLEAttribute::uuid(void)
7176
{
7277
return (struct bt_uuid *)&_uuid;

libraries/CurieBLE/src/BLEAttribute.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ class BLEAttribute {
4343
*/
4444
const char* uuid(void) const;
4545

46+
/**
47+
* Get the string representation of the Attribute
48+
*
49+
* @return const char* string representation of the Attribute
50+
*/
51+
const char* uuid_cstr(void) const;
52+
4653
/**
4754
* @brief Get the UUID raw data
4855
*

system/libarc32_arduino101/drivers/bluetooth/conn_internal.h

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)