minor service clean up
This commit is contained in:
1 parent
fc34c0223c
commit
a4487a22f7
6 files changed
+16
-8
No files matched your search
@@ -47,7 +47,7 @@ err_t BLEBas::begin(void)
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
_battery.setProperties(CHR_PROPS_READ | CHR_PROPS_NOTIFY); // could support notify
|
||||
_battery.setProperties(CHR_PROPS_READ | CHR_PROPS_NOTIFY);
|
||||
_battery.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
|
||||
_battery.setFixedLen(1);
|
||||
VERIFY_STATUS( _battery.begin() );
|
||||
@@ -64,3 +64,8 @@ bool BLEBas::notify(uint8_t level)
|
||||
{
|
||||
return _battery.notify8(level);
|
||||
}
|
||||
|
||||
bool BLEBas::notify(uint8_t level, uint16_t conn_hdl)
|
||||
{
|
||||
return _battery.notify8(level, conn_hdl);
|
||||
}
|
||||
Reference in new issue
Block a user