File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
adafruit_ble/services/standard Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 29
29
30
30
from .. import Service
31
31
from ...uuid import StandardUUID
32
+ from ...characteristics import Characteristic
32
33
from ...characteristics .string import StringCharacteristic
33
34
from ...characteristics import StructCharacteristic
34
35
from ...characteristics .int import Uint8Characteristic
@@ -69,7 +70,11 @@ class BatteryService(Service):
69
70
"""Provides battery level information"""
70
71
71
72
uuid = StandardUUID (0x180F )
72
- 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
+ )
73
78
74
79
75
80
class CurrentTimeService (Service ):
You can’t perform that action at this time.
0 commit comments