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 220:e75e8ba1ff80, committed 2014-12-01
- Comitter:
- rgrover1
- Date:
- Mon Dec 01 14:31:19 2014 +0000
- Parent:
- 219:5603d539120c
- Child:
- 221:f813cddc145b
- Commit message:
- Synchronized with git rev 93af1ec2
Author: Rohit Grover
updateGATT() should update TxPower related characteristics.
Changed in this revision
| services/URIBeaconConfigService.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/services/URIBeaconConfigService.h Mon Dec 01 14:31:19 2014 +0000
+++ b/services/URIBeaconConfigService.h Mon Dec 01 14:31:19 2014 +0000
@@ -338,6 +338,8 @@
updateURIDataCharacteristic();
updateFlagsCharacteristic();
updateBeaconPeriodCharacteristic();
+ updateTxPowerLevelsCharacteristic();
+ updateTxPowerModeCharacteristic();
}
void updateLockedStateCharacteristic(void) {
@@ -357,7 +359,7 @@
}
void updateTxPowerModeCharacteristic(void) {
-
+ ble.updateCharacteristicValue(txPowerModeChar.getValueAttribute().getHandle(), reinterpret_cast<uint8_t *>(&txPowerMode), sizeof(uint8_t));
}
void updateTxPowerLevelsCharacteristic(void) {
