@@ -36,8 +36,8 @@ class DiscoveredCharacteristic;
36
36
/* *
37
37
* Host callback types needed by the service discovery procedure.
38
38
*
39
- * This class is also an interface which may be used in vendor port to model
40
- * the service discovery process. This interface shall not be used in user code.
39
+ * This class is also an interface that may be used in vendor port to model
40
+ * the service discovery process. This interface is not used in user code.
41
41
*
42
42
* @important Implementing this interface is not a requirement for the
43
43
* implementation of the service discover process.
@@ -47,10 +47,10 @@ class ServiceDiscovery {
47
47
/* *
48
48
* Service discovered event handler.
49
49
*
50
- * The callback shall accepts a pointer to a DiscoveredService as parameter.
50
+ * The callback accepts a pointer to a DiscoveredService as parameter.
51
51
*
52
52
* @important The argument passed to the callback may not persist after the
53
- * callback invocation therefore the callbacks must make a shallow copy
53
+ * callback invocation; therefore, the callbacks must make a shallow copy
54
54
* of the DiscoveredService passed as parameter to access its value beyond
55
55
* the callback scope.
56
56
*/
@@ -60,11 +60,11 @@ class ServiceDiscovery {
60
60
/* *
61
61
* Characteristic discovered event handler.
62
62
*
63
- * The callback shall accepts a pointer to a DiscoveredCharacteristic as
63
+ * The callback accepts a pointer to a DiscoveredCharacteristic as
64
64
* parameter.
65
65
*
66
66
* @important The argument passed to the callback may not persist after the
67
- * callback invocation therefore the callbacks must make a shallow copy
67
+ * callback invocation; therefore, the callbacks must make a shallow copy
68
68
* of the DiscoveredCharacteristic passed as parameter to access its value
69
69
* beyond the callback scope.
70
70
*/
@@ -74,18 +74,18 @@ class ServiceDiscovery {
74
74
/* *
75
75
* Service discovery ended event.
76
76
*
77
- * The callback shall accepts a connection handle as parameter. This
77
+ * The callback accepts a connection handle as parameter. This
78
78
* parameter is used to identify on which connection the service discovery
79
79
* process ended.
80
80
*/
81
81
typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t;
82
82
83
83
public:
84
84
/* *
85
- * Launch service discovery. Once launched, service discovery will remain
85
+ * Launch service discovery. Once launched, service discovery remains
86
86
* active with callbacks being issued back into the application for matching
87
87
* services or characteristics. isActive() can be used to determine status, and
88
- * a termination callback (if set up) will be invoked at the end. Service
88
+ * a termination callback (if set up) is invoked at the end. Service
89
89
* discovery can be terminated prematurely, if needed, using terminate().
90
90
*
91
91
* @param connectionHandle
@@ -110,24 +110,24 @@ class ServiceDiscovery {
110
110
* characteristic.
111
111
* @param matchingServiceUUID
112
112
* UUID-based filter for specifying a service in which the application is
113
- * interested. By default it is set as the wildcard UUID_UNKNOWN,
113
+ * interested. By default, it is set as the wildcard UUID_UNKNOWN,
114
114
* in which case it matches all services. If characteristic-UUID
115
115
* filter (below) is set to the wildcard value, then a service
116
- * callback will be invoked for the matching service (or for every
116
+ * callback is invoked for the matching service (or for every
117
117
* service if the service filter is a wildcard).
118
118
* @param matchingCharacteristicUUIDIn
119
119
* UUID-based filter for specifying a characteristic in which the application
120
- * is interested. By default it is set as the wildcard UUID_UKNOWN
120
+ * is interested. By default, it is set as the wildcard UUID_UKNOWN
121
121
* to match against any characteristic. If both service-UUID
122
- * filter and characteristic-UUID filter are used with non-wildcard
122
+ * filter and characteristic-UUID filter are used with nonwildcard
123
123
* values, then only a single characteristic callback is
124
124
* invoked for the matching characteristic.
125
125
*
126
126
* @note Using wildcard values for both service-UUID and characteristic-
127
- * UUID will result in complete service discovery: callbacks being
127
+ * UUID result in complete service discovery: callbacks being
128
128
* called for every service and characteristic.
129
129
*
130
- * @note Providing NULL for the characteristic callback will result in
130
+ * @note Providing NULL for the characteristic callback results in
131
131
* characteristic discovery being skipped for each matching
132
132
* service. This allows for an inexpensive method to discover only
133
133
* services.
@@ -161,9 +161,9 @@ class ServiceDiscovery {
161
161
* Clear all ServiceDiscovery state of the associated object.
162
162
*
163
163
* This function is meant to be overridden in the platform-specific
164
- * sub-class . Nevertheless, the sub-class is only expected to reset its
165
- * state and not the data held in ServiceDiscovery members. This shall be
166
- * achieved by a call to ServiceDiscovery::reset() from the sub-class '
164
+ * subclass . Nevertheless, the subclass is only expected to reset its
165
+ * state and not the data held in ServiceDiscovery members. This is
166
+ * achieved by a call to ServiceDiscovery::reset() from the subclass '
167
167
* reset() implementation.
168
168
*
169
169
* @return BLE_ERROR_NONE on success.
0 commit comments