Skip to content

Commit fb12b95

Browse files
author
Kevin J Walters
committed
Documenting the effect of the new OrderedDict in ManufacturerData including what it benefits.
1 parent 519dbee commit fb12b95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_ble/advertising/standard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ def __init__(self, *services):
212212
class ManufacturerData(AdvertisingDataField):
213213
"""Encapsulates manufacturer specific keyed data bytes. The manufacturer is identified by the
214214
company_id and the data is structured like an advertisement with a configurable key
215-
format."""
215+
format. The order of the serialized data is determined by the order that the
216+
`ManufacturerDataField` attributes are set in - this can be useful for
217+
`match_prefixes` in an `Advertisement` sub-class."""
216218

217219
def __init__(
218220
self, obj, *, advertising_data_type=0xFF, company_id, key_encoding="B"

0 commit comments

Comments
 (0)