BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

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) {