Skip to content
New issue

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

Exception when calling handler with a BLE advertising event: KeyError('000f') #30

Open
4ttenu4tor opened this issue Jul 31, 2020 · 4 comments

Comments

@4ttenu4tor
Copy link

When running python3 ble_read_state.py Exception is printed all over the ble_read_state screen making it hard to read

Maybe new iOS version?

@ImjecAdam
Copy link

I am getting similar error, but KeyError('0103'). It makes it impossible to read the screen.

@kaiser-ren
Copy link

Hello, does anyone have a solution for this issue?

@revolver-ocelot-saa
Copy link

This is a hack for sure, but you can go to utils/bluetooth_utils.py and just change the line

            if handler is not None:
                try:
                    handler(mac_addr_str, adv_type, data, rssi)
                except Exception as e:
                    print('Exception when calling handler with a BLE advertising event: %r' % (e,))

to

            if handler is not None:
                try:
                    handler(mac_addr_str, adv_type, data, rssi)
                except Exception as e:
                    #print('Exception when calling handler with a BLE advertising event: %r' % (e,))
                    pass

@RwOnke
Copy link

RwOnke commented Sep 23, 2023

Getting KeyError(0000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants