Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.

Fork of BLE_API by Bluetooth Low Energy

Revision:
313:c4599a1aba23
Parent:
312:e2e52a7477bf
Child:
314:193908f2b13b
diff -r e2e52a7477bf -r c4599a1aba23 services/URIBeaconConfigService.h
--- a/services/URIBeaconConfigService.h	Mon Mar 09 16:23:55 2015 +0000
+++ b/services/URIBeaconConfigService.h	Mon Mar 09 16:23:55 2015 +0000
@@ -148,7 +148,7 @@
         /* Start out by advertising the configService for a limited time after
          * startup; and switch to the normal non-connectible beacon functionality
          * afterwards. */
-        setupUriBeaconConfigAdvertisements();
+        setupURIBeaconConfigAdvertisements();
 
         initSucceeded = true;
     }
@@ -160,7 +160,7 @@
     /* Start out by advertising the configService for a limited time after
      * startup; and switch to the normal non-connectible beacon functionality
      * afterwards. */
-    void setupUriBeaconConfigAdvertisements()
+    void setupURIBeaconConfigAdvertisements()
     {
         char DEVICE_NAME[] = "mUriBeacon Config";
 
@@ -195,7 +195,8 @@
         ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(ADVERTISING_INTERVAL_MSEC));
     }
 
-    void setupUriBeaconAdvertisements()
+    /* Helper function to switch to the non-connectible normal mode for URIBeacon. This gets called after a timeout. */
+    void setupURIBeaconAdvertisements()
     {
         // uint8_t serviceData[SERVICE_DATA_MAX];
         // int serviceDataLen = 0;
@@ -255,7 +256,7 @@
         Gap::GapState_t state;
         state = ble.getGapState();
         if (!state.connected) {
-            setupUriBeaconAdvertisements();
+            setupURIBeaconAdvertisements();
             configAdvertisementTimeoutTicker.detach();
         }
     }