lancaster-university / microbit-dal

http://lancaster-university.github.io/microbit-docs
Other
254 stars 130 forks source link

MicroBitUARTService - wake up send() on disconnection #428

Closed martinwork closed 5 years ago

martinwork commented 5 years ago

Using an onDisconnection callback, trigger the same event as on_confirmation to wake up send() if it's sleeping. Fixes #407.

martinwork commented 5 years ago

The event can be triggered by MicroBitBLEManager, saving 20+ bytes needed for the extra onDisconnection callback.