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
Diff: services/URIBeaconConfigService.h
- 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();
}
}
