enhance ServiceDiscovery with isActive() and onTermination()
This commit is contained in:
parent
09063c3668
commit
1ca94c9479
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue