add BLEDevice::addService()

master
Rohit Grover 2014-06-06 11:08:32 +01:00
parent 5a7e159b7b
commit d9b07e95ef
1 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,8 @@ public:
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 @@ BLEDevice::onConfirmationReceived(GattServer::EventCallback_t callback) {
transport->getGattServer().setOnConfirmationReceived(callback);
}
inline ble_error_t
BLEDevice::addService(GattService &service) {
return transport->getGattServer().addService(service);
}
/*
* ALL OF THE FOLLOWING METHODS ARE DEPRECATED
*/