Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: hw/BLEDevice.h
- 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
*/
