add addDescriptor() for Characteristic
This commit is contained in:
1 parent
3b3885108f
commit
418a2f9cc1
9 files changed
+57
-11
No files matched your search
@@ -90,7 +90,7 @@ size_t BLEUuid::size (void) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BLEUuid::begin(void)
|
||||
err_t BLEUuid::begin(void)
|
||||
{
|
||||
/* Add base uuid and decode to get uuid16
|
||||
* This should cover the already added base uuid128 previously
|
||||
@@ -98,8 +98,10 @@ void BLEUuid::begin(void)
|
||||
if (_uuid.type == BLE_UUID_TYPE_UNKNOWN && _uuid128 != NULL )
|
||||
{
|
||||
(void) sd_ble_uuid_vs_add( (ble_uuid128_t const*) _uuid128, &_uuid.type );
|
||||
(void) sd_ble_uuid_decode(16, _uuid128, &_uuid);
|
||||
VERIFY_STATUS( sd_ble_uuid_decode(16, _uuid128, &_uuid) );
|
||||
}
|
||||
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
bool BLEUuid::operator== (const BLEUuid& uuid) const
|
||||
|
||||
Reference in new issue
Block a user