Python Bleak start_notify callback not invoked

Viewed 30

I tried to connect my ble device using Python bleak module. The device is getting scanned and connected. I try to enable notification for one of the characteristic using start_notify function.

await client.start_notify(notify_char,notify_callback)
def notify_callback(handle, data):
       print(handle, data)

The notify_callback function is not getting invoked.

Any pointers on how to get data notified continously from ble.

0 Answers
Related