Marco Ferreira / BLE_API

Fork of BLE_API by Bluetooth Low Energy

Committer:
vcoubard
Date:
Wed Apr 06 19:15:32 2016 +0100
Revision:
1180:e11b058d005e
Parent:
1134:d540a48f650d
Synchronized with git rev a990f23a
Author: Andres Amaya Garcia
Add connectionCount and fix Gap state updates

Add a connectionCount member to Gap that keeps track of the total number of
open connections. Also, update the Gap state member when a connection is opened
to set advertising to false. Finally modify the processDisconnection member to
unset the connected state if connectionCount is 0.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vcoubard 1131:692ddf04fc42 1 # BLE API {#mainpage}
vcoubard 1131:692ddf04fc42 2
vcoubard 1131:692ddf04fc42 3 The BLE module within mbed OS offers a high abstraction level for using
vcoubard 1131:692ddf04fc42 4 Bluetooth Low Energy on multiple platforms.
vcoubard 1131:692ddf04fc42 5
vcoubard 1131:692ddf04fc42 6 This documentation describes the internal structure of the mbed
vcoubard 1134:d540a48f650d 7 [BLE API](https://github.com/armmbed/ble).
vcoubard 1131:692ddf04fc42 8
vcoubard 1131:692ddf04fc42 9 For getting started with BLE on mbed, check our [introduction
vcoubard 1131:692ddf04fc42 10 page](https://docs.mbed.com/docs/ble-intros/en/latest/).
vcoubard 1131:692ddf04fc42 11
vcoubard 1131:692ddf04fc42 12 For mbed OS examples using BLE, check [this
vcoubard 1131:692ddf04fc42 13 repository](https://github.com/armmbed/ble-examples). For mbed-classic
vcoubard 1131:692ddf04fc42 14 examples, please refer to [code under mbed.org](https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/).
vcoubard 1131:692ddf04fc42 15
vcoubard 1131:692ddf04fc42 16 ## Supported Services
vcoubard 1131:692ddf04fc42 17
vcoubard 1131:692ddf04fc42 18 Currently supported reference services include:
vcoubard 1131:692ddf04fc42 19
vcoubard 1131:692ddf04fc42 20 * [Battery](@ref BatteryService)
vcoubard 1131:692ddf04fc42 21 * [Device Firmware Update (DFU)](@ref DFUService)
vcoubard 1131:692ddf04fc42 22 * [Device Information](@ref DeviceInformationService)
vcoubard 1131:692ddf04fc42 23 * [Health Thermometer](@ref HealthThermometerService)
vcoubard 1131:692ddf04fc42 24 * [Heart Rate](@ref HeartRateService)
vcoubard 1131:692ddf04fc42 25 * [UART](@ref UARTService)
vcoubard 1131:692ddf04fc42 26 * [UriBeacon](@ref URIBeaconConfigService)
vcoubard 1131:692ddf04fc42 27 * [iBeacon](@ref iBeacon)
vcoubard 1131:692ddf04fc42 28
vcoubard 1131:692ddf04fc42 29 The [documentation](https://docs.mbed.com/docs/ble-intros/en/latest/AdvSamples/Overview/)
vcoubard 1053:ec4a5b9b254e 30 contains an overview on how to create new, application-specific services.