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:
- 219:5603d539120c
- Parent:
- 218:8ae02569fab9
- Child:
- 220:e75e8ba1ff80
--- 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();
