ARMmbed / ble-nrf51822

Nordic stack and drivers for the mbed BLE_API
Other
46 stars 51 forks source link

Add check for return code of ble_init #95

Closed andresag01 closed 8 years ago

andresag01 commented 8 years ago

@pan- @rgrover : This pull request addresses issue https://github.com/ARMmbed/ble-nrf51822/issues/59 and is linked to this pull request in BLE.

andresag01 commented 8 years ago

i would like to point out that the documentation for the SoftDevice describes a lot of possible error codes (and their associated causes) that the functions we are using return. However, these are very "stack specific" and we would need to add a lot more error codes to BLE API to pass this information along. Therefore, a single (slightly vague) error code BLE_ERROR_INTERNAL_STACK_FAILURE was added that is meant to represent when anything in the SoftDevice went wrong.

pan- commented 8 years ago

I'm happy with this