Replies: 1 comment
-
|
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
-
Problem 1 :
I'm working on a BLE application in Python using the bleak library to connect to a BLE device and receive notifications for changes in characteristics. While the code receives data correctly sometimes, it seems to be interrupted randomly — sometimes it successfully receives signals, and other times it doesn't. I want to ensure that notifications are received reliably every time a characteristic changes, similar to how it's handled in Android with the
onCharacteristicChanged
callback.Goal:
I want to replicate the behavior in Android, where the
onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic)
callback is invoked every time the characteristic value changes. However, in my Python application, the notifications seem to be inconsistent.Here is my code :
Problem 2:
I tried to write Characteristic to make the circuit the different action but it seem to be not work. Can you help me adjust the code?
Many thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions