Skip to content

Commit

Permalink
Merge pull request #167 from tekktrik/doc/hyperspecific-targets
Browse files Browse the repository at this point in the history
Hyperspecify targets in documentation
  • Loading branch information
dhalbert authored Jun 1, 2022
2 parents 922a5ab + b8bba9e commit 6d66d2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions adafruit_ble/advertising/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ class Advertisement:
"""

match_prefixes = ()
"""For Advertisement, `Advertisement.matches` will always return ``True``.
Subclasses may override this value."""
"""For Advertisement, :py:attr:`~adafruit_ble.advertising.Advertisement.match_prefixes`
will always return ``True``. Subclasses may override this value."""
# cached bytes of merged prefixes.
_prefix_bytes = None

Expand Down
4 changes: 3 additions & 1 deletion adafruit_ble/advertising/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ class ManufacturerData(AdvertisingDataField):
company_id and the data is structured like an advertisement with a configurable key
format. The order of the serialized data is determined by the order that the
`ManufacturerDataField` attributes are set in - this can be useful for
`Advertisement.match_prefixes` in an `Advertisement` sub-class."""
:py:attr:`~adafruit_ble.advertising.Advertisement.match_prefixes` in an `Advertisement`
sub-class.
"""

def __init__(
self, obj, *, advertising_data_type=0xFF, company_id, key_encoding="B"
Expand Down

0 comments on commit 6d66d2f

Please sign in to comment.