enhance ServiceDiscovery with isActive() and onTermination()

This commit is contained in:
Rohit Grover 2015-05-22 10:54:54 +01:00
parent 09063c3668
commit 1ca94c9479

View file

@ -136,6 +136,7 @@ public:
public:
typedef void (*ServiceCallback_t)(const DiscoveredService &);
typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic &);
typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle);
public:
static ble_error_t launch(Gap::Handle_t connectionHandle,
@ -146,6 +147,9 @@ public:
static void terminate(void);
static bool isActive(void);
static void onTermination(TerminationCallback_t callback);
protected:
Gap::Handle_t connHandle; /**< Connection handle as provided by the SoftDevice. */
UUID matchingServiceUUID;