High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
528:8d21604fe31d
Parent:
526:caa67c3187a0
Child:
567:e4b38e43de7c
--- a/services/BatteryService.h	Fri Jun 19 15:52:07 2015 +0100
+++ b/services/BatteryService.h	Fri Jun 19 15:52:07 2015 +0100
@@ -17,7 +17,7 @@
 #ifndef __BLE_BATTERY_SERVICE_H__
 #define __BLE_BATTERY_SERVICE_H__
 
-#include "BLEDevice.h"
+#include "BLE.h"
 
 /**
 * @class BatteryService
@@ -29,11 +29,11 @@
 public:
     /**
     * @param[ref] _ble
-    *               BLEDevice object for the underlying controller.
+    *               BLE object for the underlying controller.
     * @param[in] level
     *               8bit batterly level. Usually used to represent percentage of batterly charge remaining.
     */
-    BatteryService(BLEDevice &_ble, uint8_t level = 100) :
+    BatteryService(BLE &_ble, uint8_t level = 100) :
         ble(_ble),
         batteryLevel(level),
         batteryLevelCharacteristic(GattCharacteristic::UUID_BATTERY_LEVEL_CHAR, &batteryLevel, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY) {
@@ -57,7 +57,7 @@
     }
 
 protected:
-    BLEDevice &ble;
+    BLE &ble;
 
     uint8_t    batteryLevel;
     ReadOnlyGattCharacteristic<uint8_t> batteryLevelCharacteristic;