Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
321 stars 43 forks source link

Notification/Indication #121

Closed kcn1-71 closed 3 months ago

kcn1-71 commented 3 months ago

Hello, guyz! Another question How to subscribe on client side to characteristic notification/indication from gatt server? We tried add descriptor for characteristic, updated UUID of descriptor to 0x2902 and still no calls from any callbacks in client

Reedyuk commented 3 months ago

i assume this is related to android. Are you calling: https://github.com/Reedyuk/blue-falcon/blob/458659a05ab07133dc7c4ad10d567d2b076c0ab3/library/src/androidMain/kotlin/dev/bluefalcon/BlueFalcon.kt#L107

https://github.com/Reedyuk/blue-falcon/blob/458659a05ab07133dc7c4ad10d567d2b076c0ab3/library/src/androidMain/kotlin/dev/bluefalcon/BlueFalcon.kt#L125 or even: https://github.com/Reedyuk/blue-falcon/blob/458659a05ab07133dc7c4ad10d567d2b076c0ab3/library/src/androidMain/kotlin/dev/bluefalcon/BlueFalcon.kt#L157

There could be many reasons you are not being notified, i would firstly check that the device you are connecting to is getting the message that you want to be notified on characteristc changed.

Reedyuk commented 3 months ago

Is it working now @kcn1-71 ?

kcn1-71 commented 3 months ago

Yeah, sorry to desturb you We found out how it works Anyway thankyou for answer