Directly subscribe to characteristic that doesn't follow RFC spec? #1268
Unanswered
SleepyNinja0o
asked this question in
Q&A
Replies: 2 comments 2 replies
-
To work around this, I think we would need to add new APIs that separate registering value changed callbacks and enabling notifications. |
Beta Was this translation helpful? Give feedback.
2 replies
-
@dlech Here is a code example:
If anyone needs further assistance, they can check out my repo here for Zengge BLE mesh devices: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having an issue with a Zengge BLE Mesh Light. I'm trying to subscribe to a characteristic that doesn't seem to follow the RFC spec. In order to enable notifications, you have to send byte 0x01 to the Notify UUID (00010203-0405-0607-0809-0a0b0c0d1911). Once this request is sent, you can see the Handle Value Notifications inside a Bluetooth packet capture. When I use the bluepy library, it works just fine but it seems Bleak sets up the notifications/callback in a different manner.
If I call start_notify in Bleak, I get an error message stating I can't write to the attribute although the attribute has Read/Write/Notify permissions. I have tried this in Windows and Linux.
Is there a way to override the start_notify method or something else in order to directly subscribe to a UUID?
Code:
Output:
Beta Was this translation helpful? Give feedback.
All reactions