We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The from_stream method of class Packet fails in Python 3.7.3 on Raspberry Pi.
from_stream
Packet
Error message is:
Traceback (most recent call last): File "ble_prototype_host.py", line 63, in <module> packet = Packet.from_stream(stream) File "/home/pi/.local/lib/python3.7/site-packages/adafruit_bluefruit_connect/packet.py", line 107, in from_stream packet_class = cls._type_to_class.get(header, None) TypeError: unhashable type: 'bytearray'
Can this be resolved by changing:
header = start + packet_type
on the previous line in the library to:
header = bytes(start + packet_type)
thus making header hashable?
header
The text was updated successfully, but these errors were encountered:
Thanks! That looks like the right fix. Are you able to submit a PR?
Sorry, something went wrong.
Fixed by #28
No branches or pull requests
The
from_stream
method of classPacket
fails in Python 3.7.3 on Raspberry Pi.Error message is:
Can this be resolved by changing:
on the previous line in the library to:
thus making
header
hashable?The text was updated successfully, but these errors were encountered: