QUERY · ISSUE
docs: BLE Event handling seems to contradict general guidelines for IRQ handling
docs
Documentation URL
https://docs.micropython.org/en/latest/library/bluetooth.html#event-handling
Description
In BLE event handling a suggestion is given to create copies of the ringbuffer parameters. This however, would violate the general guidelines given for interrupt routines which specifically warn against instantiating objects.
https://github.com/micropython/micropython/blob/99ac8193ea299e6d836b076149f561e58226ede6/docs/reference/isr_rules.rst?plain=1#L102
Code of Conduct
Yes, I agree
CANDIDATE · PULL REQUEST
docs/library/bluetooth: Add initial BLE documentation.
docs
Still lots more to write (especially examples) but now that BLE support is enabled on both ESP32 and PYBD I thought it would be worth just getting the classes and methods listed.