Skip to content

some error bytes/int #19

@kessero

Description

@kessero

I get this error python 3.6.3:

ble thread started
Traceback (most recent call last):
  File "test_blee.py", line 23, in <module>
    returnedList = scan_blee.parse_events(sock, 10)
  File "/home/.../blescan.py", line 141, in parse_events
    subevent, = struct.unpack("B", pkt[3])
TypeError: a bytes-like object is required, not 'int'

Some data had been change in struct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions