File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ def connection_interval(self) -> float:
130
130
`connection_interval` will then remain the same.
131
131
132
132
Apple has additional guidelines that dictate should be a multiple of 15ms except if HID
133
- is available. When HID is available Apple devices may accept 11.25ms intervals."""
133
+ is available. When HID is available Apple devices may accept 11.25ms intervals.
134
+ """
134
135
return self ._bleio_connection .connection_interval
135
136
136
137
@connection_interval .setter
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class Attribute:
45
45
46
46
.. data:: SIGNED_WITH_MITM
47
47
48
- security_mode: authenticated data signing, without man-in-the-middle protection"""
48
+ security_mode: authenticated data signing, without man-in-the-middle protection
49
+ """
49
50
50
51
# pylint: disable=too-few-public-methods
51
52
NO_ACCESS = _bleio .Attribute .NO_ACCESS
Original file line number Diff line number Diff line change 13
13
connection = None
14
14
15
15
while True :
16
-
17
16
if not connection :
18
17
print ("Scanning for BLE device advertising our sensor service..." )
19
18
for adv in ble .start_scan (ProvideServicesAdvertisement ):
Original file line number Diff line number Diff line change 16
16
service = SensorService ()
17
17
advertisement = ProvideServicesAdvertisement (service )
18
18
19
+
19
20
# Function to get some fake weather sensor readings for this example in the desired unit.
20
21
def measure (unit ):
21
22
temperature = random .uniform (0.0 , 10.0 )
You can’t perform that action at this time.
0 commit comments