Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 758:65afcbb2ac81, committed 2015-07-22
- 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 |
--- 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(¶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]);
