Changed URIBeaconConfigService.h to work with ST board

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
jslater8
Date:
Wed Jul 22 09:19:08 2015 +0000
Parent:
757:4cd3b18607ec
Commit message:
Commented out lines in URIBeaconConfigService.h to work with ST Board

Changed in this revision

ble/services/URIBeaconConfigService.h Show annotated file Show diff for this revision Revisions of this file
diff -r 4cd3b18607ec -r 65afcbb2ac81 ble/services/URIBeaconConfigService.h
--- a/ble/services/URIBeaconConfigService.h	Tue Jul 21 13:25:40 2015 +0100
+++ b/ble/services/URIBeaconConfigService.h	Wed Jul 22 09:19:08 2015 +0000
@@ -140,10 +140,10 @@
 
         GattService configService(UUID_URI_BEACON_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
-        ble.addService(configService);
-        ble.onDataWritten(this, &URIBeaconConfigService::onDataWrittenCallback);
+        //ble.addService(configService);
+        //ble.onDataWritten(this, &URIBeaconConfigService::onDataWrittenCallback);
 
-        setupURIBeaconConfigAdvertisements(); /* Setup advertising for the configService. */
+        setupURIBeaconAdvertisements(); /* Setup advertising for the configService. */
 
         initSucceeded = true;
     }
@@ -188,8 +188,8 @@
         unsigned serviceDataLen = 0;
 
         /* Reinitialize the BLE stack. This will clear away the existing services and advertising state. */
-        ble.shutdown();
-        ble.init();
+        //ble.shutdown();
+        //ble.init();
 
         // Fields from the Service
         unsigned beaconPeriod                                 = params.beaconPeriod;
@@ -199,8 +199,8 @@
         URIBeaconConfigService::PowerLevels_t &advPowerLevels = params.advPowerLevels;
         uint8_t flags                                         = params.flags;
 
-        extern void saveURIBeaconConfigParams(const Params_t *paramsP); /* forward declaration; necessary to avoid a circular dependency. */
-        saveURIBeaconConfigParams(&params);
+        //extern void saveURIBeaconConfigParams(const Params_t *paramsP); /* forward declaration; necessary to avoid a circular dependency. */
+        //saveURIBeaconConfigParams(&params);
 
         ble.gap().clearAdvertisingPayload();
         ble.gap().setTxPower(params.advPowerLevels[params.txPowerMode]);