DV \E
Dependencies: BLE_API EthernetInterface mbed nRF51822
Fork of BLE_HeartRate by
Diff: main.cpp
- Revision:
- 66:c09ddf226b9c
- Parent:
- 65:cb76569f74f6
- Child:
- 67:b2d2dee347c0
diff -r cb76569f74f6 -r c09ddf226b9c main.cpp --- a/main.cpp Sat Jun 20 00:03:36 2015 +0000 +++ b/main.cpp Sat Jun 20 23:25:02 2015 +0000 @@ -25,7 +25,7 @@ * interval.*/ #define UPDATE_PARAMS_FOR_LONGER_CONNECTION_INTERVAL 0 -BLEDevice ble; +BLE ble; DigitalOut led1(LED1); const static char DEVICE_NAME[] = "HRM1"; @@ -35,7 +35,7 @@ void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) { - ble.startAdvertising(); // restart advertising + ble.gap().startAdvertising(); // restart advertising } void periodicCallback(void)