An initial demo showcasing the GattClient APIs. Drives an LED service exported by a BLE_LED peripheral. Shows scanning, connections, service-discovery, and reads/writes.
Dependencies: BLE_API mbed nRF51822
Diff: main.cpp
- Revision:
- 8:b433a261072f
- Parent:
- 7:61e2224ec9a0
- Child:
- 9:dc392bde2b3c
--- a/main.cpp Thu Jul 02 08:39:04 2015 +0000
+++ b/main.cpp Thu Jul 02 08:51:39 2015 +0000
@@ -106,8 +106,6 @@
ble.gap().onConnection(connectionCallback);
ble.gap().onDisconnection(disconnectionCallback);
- /* Request for comments: should setupOnDataRead() be a static for DiscoveredCharacteristic?
- * Or should it be passed in as a parameter to read()? */
ble.gattClient().onDataRead(triggerToggledWrite);
ble.gattClient().onDataWrite(triggerRead);