(This is an API usage question, not a bug report or anything)
So I want to do this:
Scan for characteristics
Set characteristic A to notify
Write value to characteristic B
When I try to do the last step, I run into this error. I'm doing those two steps inside the setup_standard_scan callback as I find each characteristic. What should I do instead? Loop on is_idle() inside the callback before I write...?
(This is an API usage question, not a bug report or anything)
So I want to do this:
When I try to do the last step, I run into this error. I'm doing those two steps inside the
setup_standard_scan
callback as I find each characteristic. What should I do instead? Loop onis_idle()
inside the callback before I write...?Here is my (pseudo)code:
Thanks in advance for taking the time to help if you do :)