
Button initiated config service
Dependencies: BLE_API_EddystoneConfigService_2 mbed nRF51822
Fork of BLE_EddystoneBeaconConfigService_3 by
Revision 53:cc4cb139ef0d, committed 2015-09-15
- Comitter:
- mbedAustin
- Date:
- Tue Sep 15 18:27:54 2015 +0000
- Parent:
- 52:be1f45ee0852
- Child:
- 54:4418b24f2506
- Commit message:
- Removed Printf's from main program to enable low power debugging.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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(); }