add parent service for central
This commit is contained in:
1 parent
9f40cbfb1e
commit
be42b0a360
8 files changed
+29
-9
No files matched your search
@@ -64,6 +64,11 @@ uint16_t BLECentralCharacteristic::valueHandle()
|
||||
return _chr.handle_value;
|
||||
}
|
||||
|
||||
BLECentralService& BLECentralCharacteristic::parentService (void)
|
||||
{
|
||||
return *_service;
|
||||
}
|
||||
|
||||
bool BLECentralCharacteristic::discoverDescriptor(void)
|
||||
{
|
||||
struct {
|
||||
@@ -89,6 +94,8 @@ bool BLECentralCharacteristic::discoverDescriptor(void)
|
||||
|
||||
void BLECentralCharacteristic::begin(void)
|
||||
{
|
||||
_service = BLECentralService::lastService;
|
||||
|
||||
// Currently Only register to Bluefruit if callback is installed
|
||||
if ( _notify_cb )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user