Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API errors during execution of BLE operations should be propagated in BLE response PDUs where possible and sensible #179

Open
ghost opened this issue Jul 6, 2016 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Jul 6, 2016

Right now if you write to LED Text to display a message on the LED display and the display is already busy, the request is ignored and there's an error returned by the micro:bit API call. But as far as the connected Bluetooth client is concerned, the write worked.

This specific issue may be dealt with in a different way (we may make the BLE write take priority and interrupt any current display animation) but it would be good if a general review of how API errors are handled in the context of Bluetooth operations was undertaken. Where possible and sensible, an error executing a BLE originated sequence of calls should result in an error code returned in the Bluetooth response PDU (if there is one).

@ghost ghost added the BLE label Aug 17, 2016
@ghost
Copy link
Author

ghost commented Aug 24, 2016

Looks like mbed does not support this currently....

ARMmbed/ble#181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants