We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f58e21 commit 79e59aaCopy full SHA for 79e59aa
adafruit_ble_adafruit/adafruit_service.py
@@ -69,8 +69,12 @@ class AdafruitServerAdvertisement(
69
pid = ManufacturerDataField(_PID_DATA_ID, "<H")
70
"""The USB PID (product id) for this board."""
71
72
- def __init__(self):
73
- super().__init__()
+ def __init__(self, *, entry=None):
+ super().__init__(entry=entry)
74
+ # Return early if things have been set by an existing ScanEntry.
75
+ if entry:
76
+ return
77
+ # Creating an advertisement to send.
78
self.connectable = True
79
self.flags.general_discovery = True
80
self.flags.le_only = True
0 commit comments