add BLEDevice::addService()
parent
5a7e159b7b
commit
d9b07e95ef
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue