File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
libraries/Bluefruit52Lib/src/clients Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,19 @@ uint8_t BLEClientBas::read(void)
69
69
{
70
70
return _battery.read8 ();
71
71
}
72
+
73
+ bool BLEClientBas::enableNotify (void )
74
+ {
75
+ return _battery.enableNotify ();
76
+ }
77
+
78
+ bool BLEClientBas::disableNotify (void )
79
+ {
80
+ return _battery.disableNotify ();
81
+ }
82
+
83
+ void BLEClientBas::setNotifyCallback (BLEClientCharacteristic::notify_cb_t fp, bool useAdaCallback)
84
+ {
85
+ return _battery.setNotifyCallback (fp, useAdaCallback);
86
+ }
87
+
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ class BLEClientBas : public BLEClientService
51
51
52
52
uint8_t read (void );
53
53
54
+ bool enableNotify (void );
55
+ bool disableNotify (void );
56
+
57
+ void setNotifyCallback (BLEClientCharacteristic::notify_cb_t fp, bool useAdaCallback = true );
58
+
54
59
private:
55
60
BLEClientCharacteristic _battery;
56
61
};
You can’t perform that action at this time.
0 commit comments