Skip to content

aioble/server: Log warning on out-of-order indication.#461

Open
andrewleech wants to merge 2 commits intomicropython:masterfrom
andrewleech:indication_warning
Open

aioble/server: Log warning on out-of-order indication.#461
andrewleech wants to merge 2 commits intomicropython:masterfrom
andrewleech:indication_warning

Conversation

@andrewleech
Copy link
Copy Markdown
Contributor

The assert in indicate_done has the potential to crash an application when indication mis-behave or were not expected.
In our experience it's been safer to just ignore and log these rather than throw an exception that cannot be easily caught.

@andrewleech andrewleech force-pushed the indication_warning branch from 8254f6b to 7e88b98 Compare May 12, 2025 05:53
Early-return with a warning if the BLE stack fires an indication-done
callback for a characteristic that doesn't have the indicate flag set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants