Microbug / BLE_API

Fork of BLE_API by Bluetooth Low Energy

Revision:
72:bd485a3b18c5
Parent:
64:95529f47b782
Child:
73:eeb1ac3545e9
diff -r ff3e3bdf4514 -r bd485a3b18c5 hw/BLEDevice.h
--- a/hw/BLEDevice.h	Thu Jun 05 15:24:22 2014 +0100
+++ b/hw/BLEDevice.h	Fri Jun 06 11:08:32 2014 +0100
@@ -141,6 +141,8 @@
     void onUpdatesDisabled(GattServer::EventCallback_t callback);
     void onConfirmationReceived(GattServer::EventCallback_t callback);
 
+    ble_error_t addService(GattService &service);
+
 private:
     /**
      * Internal helper to udpate the transport backend with advertising data
@@ -331,6 +333,11 @@
     transport->getGattServer().setOnConfirmationReceived(callback);
 }
 
+inline ble_error_t
+BLEDevice::addService(GattService &service) {
+    return transport->getGattServer().addService(service);
+}
+
 /*
  * ALL OF THE FOLLOWING METHODS ARE DEPRECATED
  */