High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Feb 13 13:00:40 2015 +0000
Parent:
278:8a935a2d4a16
Child:
280:68c8a5e55c96
Commit message:
Synchronized with git rev cff7888c
Author: Bill Schilit
Formatting

Changed in this revision

services/URIBeaconConfigService.h Show annotated file Show diff for this revision Revisions of this file
--- a/services/URIBeaconConfigService.h	Fri Feb 13 13:00:40 2015 +0000
+++ b/services/URIBeaconConfigService.h	Fri Feb 13 13:00:40 2015 +0000
@@ -145,7 +145,7 @@
 
         GattService configService(UUID_URI_BEACON_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
-	ble.addService(configService);
+        ble.addService(configService);
         ble.onDataWritten(this, &URIBeaconConfigService::onDataWrittenCallback);
 
         initSucceeded = true;
@@ -217,12 +217,12 @@
     void updateCharacteristicValues(void) {
         ble.updateCharacteristicValue(lockedStateChar.getValueHandle(), &lockedState, 1);
         ble.updateCharacteristicValue(uriDataChar.getValueHandle(), params.uriData, params.uriDataLength);
-	ble.updateCharacteristicValue(flagsChar.getValueHandle(), &params.flags, 1);
+        ble.updateCharacteristicValue(flagsChar.getValueHandle(), &params.flags, 1);
         ble.updateCharacteristicValue(beaconPeriodChar.getValueHandle(),
-				      reinterpret_cast<uint8_t *>(&params.beaconPeriod), sizeof(uint16_t));
+                                      reinterpret_cast<uint8_t *>(&params.beaconPeriod), sizeof(uint16_t));
         ble.updateCharacteristicValue(txPowerModeChar.getValueHandle(), &params.txPowerMode, 1);
         ble.updateCharacteristicValue(advPowerLevelsChar.getValueHandle(),
-				      reinterpret_cast<uint8_t *>(params.advPowerLevels), sizeof(PowerLevels_t));
+                                      reinterpret_cast<uint8_t *>(params.advPowerLevels), sizeof(PowerLevels_t));
     }
 
   private: