-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
How is packet_id meant to be used? It seems broken but maybe I'm missing something.
>>> from bthome import BTHome
>>> beacon = BTHome()
>>> beacon.packet_id
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bthome.py", line 310, in packet_id
AttributeError: 'BTHome' object has no attribute '_packet_id'
I think we just need to add self._packet_id = 0 to the class constructor. After doing that, it increments on each advertisement.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working