Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
apache-2.0.txt@1088:709ebced28ab, 2016-01-11 (annotated)
- Committer:
- vcoubard
- Date:
- Mon Jan 11 08:51:49 2016 +0000
- Revision:
- 1088:709ebced28ab
- Parent:
- 803:50c9096035b1
Synchronized with git rev 0781293b
Author: Andres Amaya Garcia
Add onShutdown to register callbacks
Add an onShutdown() function to Gap, GattClient, GattServer and
SecurityManager. The callbacks are added to a private callback chain in each of
the instances. The callbacks will be executed inside each object's reset()
function BEFORE the state of the instance is cleared. The developers of the
platform-specific implementation must call the parent class' reset() function
for the callbacks to be executed.
Finally, an onShutdown() function that returns the shutdown callchain is added
to allow detaching callbacks.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 803:50c9096035b1 | 1 | Copyright (c) 2015 ARM Limited |
rgrover1 | 803:50c9096035b1 | 2 | |
rgrover1 | 803:50c9096035b1 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
rgrover1 | 803:50c9096035b1 | 4 | you may not use this file except in compliance with the License. |
rgrover1 | 803:50c9096035b1 | 5 | You may obtain a copy of the License at |
rgrover1 | 803:50c9096035b1 | 6 | |
rgrover1 | 803:50c9096035b1 | 7 | http://www.apache.org/licenses/LICENSE-2.0 |
rgrover1 | 803:50c9096035b1 | 8 | |
rgrover1 | 803:50c9096035b1 | 9 | Unless required by applicable law or agreed to in writing, software |
rgrover1 | 803:50c9096035b1 | 10 | distributed under the License is distributed on an "AS IS" BASIS, |
rgrover1 | 803:50c9096035b1 | 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rgrover1 | 803:50c9096035b1 | 12 | See the License for the specific language governing permissions and |
rgrover1 | 803:50c9096035b1 | 13 | limitations under the License. |