We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4bd530 + d23e7cf commit 41f7a35Copy full SHA for 41f7a35
1 file changed
adafruit_ble/services/standard/__init__.py
@@ -29,6 +29,7 @@
29
30
from .. import Service
31
from ...uuid import StandardUUID
32
+from ...characteristics import Characteristic
33
from ...characteristics.string import StringCharacteristic
34
from ...characteristics import StructCharacteristic
35
from ...characteristics.int import Uint8Characteristic
@@ -69,7 +70,11 @@ class BatteryService(Service):
69
70
"""Provides battery level information"""
71
72
uuid = StandardUUID(0x180F)
- level = Uint8Characteristic(max_value=100, uuid=StandardUUID(0x2A19))
73
+ level = Uint8Characteristic(
74
+ max_value=100,
75
+ properties=Characteristic.READ | Characteristic.NOTIFY,
76
+ uuid=StandardUUID(0x2A19),
77
+ )
78
79
80
class CurrentTimeService(Service):
0 commit comments