-
Notifications
You must be signed in to change notification settings - Fork 75
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
BLE::init() should be non-blocking #90
Labels
Comments
!This may result in a rewrite of all demos! The Nordic stack initializes rightaway, and so existing demos should continue to work against Nordic. mbed-classic demos would look something like:
whereas mbedOS demos would look like:
|
ARM Internal Ref: IOTSFW-1098 |
rgrover
pushed a commit
to ARMmbed/ble-nrf51822
that referenced
this issue
Oct 30, 2015
============= * Update init() to match the changes around initializationCompleteCallback. Also implemented hasInitialized(). Refer to ARMmbed/ble#91 and ARMmbed/ble#90. * Some changes for memory savings. Certain singletons are now allocated dynamically; so some memory may not be needed if the application exercises limited functionality. Also reduced the size of some global tables for memory savings; affected tables/constants: UUID_TABLE_MAX_ENTRIES (down to 4), DEVICE_MANAGER_MAX_BONDS (down to 2).
rgrover
pushed a commit
to ARMmbed/ble-nrf51822
that referenced
this issue
Oct 30, 2015
============= * Update init() to match the changes around initializationCompleteCallback. Also implemented hasInitialized(). Refer to ARMmbed/ble#91 and ARMmbed/ble#90. * Some changes for memory savings. Certain singletons are now allocated dynamically; so some memory may not be needed if the application exercises limited functionality. Also reduced the size of some global tables for memory savings; affected tables/constants: UUID_TABLE_MAX_ENTRIES (down to 4), DEVICE_MANAGER_MAX_BONDS (down to 2).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the demo applications call init() and then expect to operate on the BLE instance rightaway. This model may not apply to stacks where initialization requires several rounds of blocking message passing between the host and the controller. BLE::init() should be non-blocking and should result in a completionCallback() when initialization is complete. It should also be possible for the application to determine if initailization is complete. Any use of a BLE instance before its initialization completes should return an error.
The text was updated successfully, but these errors were encountered: