-
I just started using bleak for android can anyone tell me what does start_notify do exactly , was able to understand all the other functions but could not understand start_notify what does it do and why is it used? Thank you for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It registers a callback that will be called when notifications are received on the host system |
Beta Was this translation helpful? Give feedback.
-
can you explain with an example that would be better as I was trying out examples for start_notify in android but facing alot of issues. |
Beta Was this translation helpful? Give feedback.
It registers a callback that will be called when notifications are received on the host system
self.__gatt.setCharacteristicNotification(characteristic.obj, True)
and it writes to the characteristic descriptor on the remote device to tell the remote device to enable notificationsself.write_gatt_descriptor(characteristic.notification_descriptor, defs.BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE)