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:
219:5603d539120c
Parent:
218:8ae02569fab9
Child:
220:e75e8ba1ff80
diff -r 8ae02569fab9 -r 5603d539120c services/URIBeaconConfigService.h
--- a/services/URIBeaconConfigService.h	Mon Dec 01 14:31:19 2014 +0000
+++ b/services/URIBeaconConfigService.h	Mon Dec 01 14:31:19 2014 +0000
@@ -141,16 +141,17 @@
     }
 
     /**
-     * Update the txPower for a particular mode in the powerLevels table.
+     * Update the txPowerLevels table.
      */
-    void setTxPowerLevel(TXPowerModes_t mode, int8_t txPowerIn) {
-        powerLevels[mode] = txPowerIn;
+    void setTxPowerLevels(const int8_t powerLevelsIn[NUM_POWER_MODES]) {
+        memcpy(powerLevels, powerLevelsIn, sizeof(powerLevels));
+        updateTxPowerLevelsCharacteristic();
     }
 
     /**
      * Set the effective power mode from one of the values in the powerLevels tables.
      */
-    void useTxPowerMode(TXPowerModes_t mode) {
+    void setTxPowerMode(TXPowerModes_t mode) {
         txPowerMode = mode;
         configureGAP();
         updateTxPowerModeCharacteristic();