A GattClient example based on ST BlueNRG driving an LED service exported by a BLE_LED peripheral. Shows scanning, connections, service-discovery, and reads/writes.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Diff: main.cpp
- Revision:
- 1:e0f4bcce540c
- Parent:
- 0:2e972e7d3f64
- Child:
- 2:c944cfe08e79
--- a/main.cpp Thu Jan 07 16:46:51 2016 +0000 +++ b/main.cpp Thu Jan 14 10:58:48 2016 +0000 @@ -142,7 +142,7 @@ } // Set BT Address - ble.gap().setAddress(Gap::ADDR_TYPE_PUBLIC, BLE_address_BE); + ble.gap().setAddress(BLEProtocol::AddressType::PUBLIC, BLE_address_BE); ble.gap().onConnection(connectionCallback); ble.onDisconnection(disconnectionCallback);