Button initiated config service
Dependencies: BLE_API_EddystoneConfigService_2 mbed nRF51822
Fork of BLE_EddystoneBeaconConfigService_3 by
Diff: main.cpp
- Revision:
- 53:cc4cb139ef0d
- Parent:
- 51:d77639d7a3e4
- Child:
- 54:4418b24f2506
--- a/main.cpp Mon Sep 14 23:11:11 2015 +0000 +++ b/main.cpp Tue Sep 15 18:27:54 2015 +0000 @@ -45,7 +45,6 @@ state = ble.getGapState(); if (!state.connected) { /* don't switch if we're in a connected state. */ configAdvertisementTimeout.detach(); /* disable the callback from the timeout Ticker. */ - printf("removing config service\r\n"); EddystoneBeaconConfig->setupEddystoneAdvertisements(); } } @@ -62,13 +61,11 @@ else{ // eddystone is not configured, continue advertising ble.gap().startAdvertising(); - printf("disconnect CB\r\n"); } } int main(void) { - printf("Starting Example\r\n"); ble.init(); ble.gap().onDisconnection(disconnectionCallback); @@ -101,7 +98,6 @@ ble.gap().startAdvertising(); /* Set the whole thing in motion. After this call a GAP central can scan the EddystoneBeaconConfig * service. This can then be switched to the normal URIBeacon functionality after a timeout. */ - printf("Running...\r\n"); while (true) { ble.waitForEvent(); }