Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: ble/ServiceDiscovery.h
- Revision:
- 1183:1589830dbdb7
- Parent:
- 1179:4ab722f8dca0
--- a/ble/ServiceDiscovery.h Wed Apr 06 19:15:34 2016 +0100 +++ b/ble/ServiceDiscovery.h Wed Apr 06 19:15:36 2016 +0100 @@ -117,7 +117,7 @@ const UUID &matchingCharacteristicUUIDIn = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) = 0; /** - * Is service-discovery currently active? + * Check whether service-discovery is currently active. */ virtual bool isActive(void) const = 0; @@ -154,11 +154,30 @@ } protected: - Gap::Handle_t connHandle; /**< Connection handle as provided by the SoftDevice. */ + /** + * Connection handle as provided by the SoftDevice. + */ + Gap::Handle_t connHandle; + /** + * UUID-based filter that specifies the service that the application is + * interested in. + */ UUID matchingServiceUUID; + /** + * The registered callback handle for when a matching service is found + * during service-discovery. + */ ServiceCallback_t serviceCallback; + /** + * UUID-based filter that specifies the characteristic that the + * application is interested in. + */ UUID matchingCharacteristicUUID; + /** + * The registered callback handler for when a matching characteristic is + * found during service-discovery. + */ CharacteristicCallback_t characteristicCallback; }; -#endif // ifndef __SERVICE_DISOVERY_H__ \ No newline at end of file +#endif /* ifndef __SERVICE_DISOVERY_H__ */ \ No newline at end of file