add _disconnect_cb() and _connect_cb() to BLEService
integrate BLEService.addToGatt() to begin()
This commit is contained in:
1 parent
ca2d6f3dce
commit
5259a71ebb
9 files changed
+44
-19
No files matched your search
@@ -44,7 +44,8 @@ BLEBas::BLEBas(void) :
|
||||
|
||||
err_t BLEBas::begin(void)
|
||||
{
|
||||
VERIFY_STATUS( this->addToGatt() );
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
_battery.setProperties(CHR_PROPS_READ | CHR_PROPS_NOTIFY); // could support notify
|
||||
_battery.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
|
||||
|
||||
Reference in new issue
Block a user