diff --git a/public/ServiceDiscovery.h b/public/ServiceDiscovery.h index 563712e..d627e52 100644 --- a/public/ServiceDiscovery.h +++ b/public/ServiceDiscovery.h @@ -36,9 +36,20 @@ public: const UUID &matchingServiceUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN), const UUID &matchingCharacteristicUUIDIn = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)); + /** + * Terminate an ongoing service-discovery. This should result in an + * invocation of the TerminationCallback if service-discovery is active. + */ static void terminate(void); + /** + * Is service-discovery currently active? + */ static bool isActive(void); + + /** + * Setup callback to be invoked when service discovery is terminated. + */ static void onTermination(TerminationCallback_t callback); protected: