add addDescriptor() for Characteristic
This commit is contained in:
1 parent
3b3885108f
commit
418a2f9cc1
9 files changed
+57
-11
No files matched your search
@@ -43,14 +43,17 @@ BLEUuid HAPCharacteristic::_g_uuid_cid(HAP_UUID_CHR_CHARACTERISTIC_ID);
|
||||
err_t HAPCharacteristic::begin(void)
|
||||
{
|
||||
VERIFY_STATUS( BLECharacteristic::begin() );
|
||||
return _addChrID();
|
||||
VERIFY_STATUS( _addChrIdDescriptor() );
|
||||
VERIFY_STATUS( _addFormatDescriptor() );
|
||||
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add Characteristic Instance ID descriptor
|
||||
* @return status code
|
||||
*/
|
||||
err_t HAPCharacteristic::_addChrID(void)
|
||||
err_t HAPCharacteristic::_addChrIdDescriptor(void)
|
||||
{
|
||||
// Add Descriptor UUID if not yet added
|
||||
if (_g_uuid_cid._uuid.type == BLE_UUID_TYPE_UNKNOWN)
|
||||
@@ -84,3 +87,10 @@ err_t HAPCharacteristic::_addChrID(void)
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
err_t HAPCharacteristic::_addFormatDescriptor(void)
|
||||
{
|
||||
|
||||
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user