add parent service for central

This commit is contained in:
hathach committed 2017-03-23 02:21:52 +07:00
1 parent 9f40cbfb1e
commit be42b0a360
8 files changed
+29 -9

No files matched your search

@@ -82,6 +82,11 @@ void BLECharacteristic::setUuid(BLEUuid bleuuid)
uuid = bleuuid;
}
BLEService& BLECharacteristic::parentService (void)
{
return *_service;
}
/**
* Must be set when Charactertistic is declared locally (e.g insdie function)
* and is not last throughout programs. Useful for one-shot set-and-forget