Changed URIBeaconConfigService.h to work with ST board
Fork of BLE_API by
Revision 758:fdc8fb035656, committed 2015-07-22
- Comitter:
- jslater8
- Date:
- Wed Jul 22 09:30:51 2015 +0000
- Parent:
- 757:4cd3b18607ec
- Commit message:
- Changed 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 |
--- a/ble/services/URIBeaconConfigService.h Tue Jul 21 13:25:40 2015 +0100 +++ b/ble/services/URIBeaconConfigService.h Wed Jul 22 09:30:51 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(¶ms); + //extern void saveURIBeaconConfigParams(const Params_t *paramsP); /* forward declaration; necessary to avoid a circular dependency. */ + //saveURIBeaconConfigParams(¶ms); ble.gap().clearAdvertisingPayload(); ble.gap().setTxPower(params.advPowerLevels[params.txPowerMode]);