High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
586:56b55dad625c
Parent:
579:c64c9186ad37
Child:
587:b53dd328822d
--- a/public/BLEDevice.h	Fri Jun 19 15:52:51 2015 +0100
+++ b/public/BLEDevice.h	Fri Jun 19 15:52:51 2015 +0100
@@ -319,6 +319,8 @@
      */
     ble_error_t stopScan(void);
 
+    ble_error_t connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType = Gap::ADDR_TYPE_RANDOM_STATIC);
+
     /**
      * This call initiates the disconnection procedure, and its completion will
      * be communicated to the application with an invocation of the
@@ -858,6 +860,11 @@
 }
 
 inline ble_error_t
+BLEDevice::connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType) {
+    return transport->getGap().connect(peerAddr, peerAddrType);
+}
+
+inline ble_error_t
 BLEDevice::disconnect(Gap::DisconnectionReason_t reason)
 {
     return transport->getGap().disconnect(reason);