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:
130130 `connection_interval` will then remain the same.
131131
132132 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+ """
134135 return self ._bleio_connection .connection_interval
135136
136137 @connection_interval .setter
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class Attribute:
4545
4646 .. data:: SIGNED_WITH_MITM
4747
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+ """
4950
5051 # pylint: disable=too-few-public-methods
5152 NO_ACCESS = _bleio .Attribute .NO_ACCESS
Original file line number Diff line number Diff line change 1313connection = None
1414
1515while True :
16-
1716 if not connection :
1817 print ("Scanning for BLE device advertising our sensor service..." )
1918 for adv in ble .start_scan (ProvideServicesAdvertisement ):
Original file line number Diff line number Diff line change 1616service = SensorService ()
1717advertisement = ProvideServicesAdvertisement (service )
1818
19+
1920# Function to get some fake weather sensor readings for this example in the desired unit.
2021def measure (unit ):
2122 temperature = random .uniform (0.0 , 10.0 )
You can’t perform that action at this time.
0 commit comments