Peripheral.observe: How do I wait for the CCCD step to complete before communicating with my peripheral? #1100
-
|
I have a fairly straightforward setup:
On Android, sometimes I see that my step 3 occurs before the CCCD for step 2 is completed and this leads to communication failures with my peripheral. Right now I'm fixing this by adding a few 100ms delay between steps 2 and 3; but this seems brittle. So, is there a way for Edit: By "CCCD step has been completed", I mean the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I believe the |
Beta Was this translation helpful? Give feedback.
I believe the
onSubscriptionlambda should've been able to handle what you're describing.Can you provide a code snippet of how you were using it?