Skip to content

Commit fcb50dd

Browse files
author
Amanda Butler
authored
Copy edit ServiceDiscovery.h
Make minor copy edits, mostly for consistent tense.
1 parent 1720a48 commit fcb50dd

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

features/FEATURE_BLE/ble/ServiceDiscovery.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class DiscoveredCharacteristic;
3636
/**
3737
* Host callback types needed by the service discovery procedure.
3838
*
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.
4141
*
4242
* @important Implementing this interface is not a requirement for the
4343
* implementation of the service discover process.
@@ -47,10 +47,10 @@ class ServiceDiscovery {
4747
/**
4848
* Service discovered event handler.
4949
*
50-
* The callback shall accepts a pointer to a DiscoveredService as parameter.
50+
* The callback accepts a pointer to a DiscoveredService as parameter.
5151
*
5252
* @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
5454
* of the DiscoveredService passed as parameter to access its value beyond
5555
* the callback scope.
5656
*/
@@ -60,11 +60,11 @@ class ServiceDiscovery {
6060
/**
6161
* Characteristic discovered event handler.
6262
*
63-
* The callback shall accepts a pointer to a DiscoveredCharacteristic as
63+
* The callback accepts a pointer to a DiscoveredCharacteristic as
6464
* parameter.
6565
*
6666
* @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
6868
* of the DiscoveredCharacteristic passed as parameter to access its value
6969
* beyond the callback scope.
7070
*/
@@ -74,18 +74,18 @@ class ServiceDiscovery {
7474
/**
7575
* Service discovery ended event.
7676
*
77-
* The callback shall accepts a connection handle as parameter. This
77+
* The callback accepts a connection handle as parameter. This
7878
* parameter is used to identify on which connection the service discovery
7979
* process ended.
8080
*/
8181
typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t;
8282

8383
public:
8484
/**
85-
* Launch service discovery. Once launched, service discovery will remain
85+
* Launch service discovery. Once launched, service discovery remains
8686
* active with callbacks being issued back into the application for matching
8787
* 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
8989
* discovery can be terminated prematurely, if needed, using terminate().
9090
*
9191
* @param connectionHandle
@@ -110,24 +110,24 @@ class ServiceDiscovery {
110110
* characteristic.
111111
* @param matchingServiceUUID
112112
* 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,
114114
* in which case it matches all services. If characteristic-UUID
115115
* 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
117117
* service if the service filter is a wildcard).
118118
* @param matchingCharacteristicUUIDIn
119119
* 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
121121
* 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
123123
* values, then only a single characteristic callback is
124124
* invoked for the matching characteristic.
125125
*
126126
* @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
128128
* called for every service and characteristic.
129129
*
130-
* @note Providing NULL for the characteristic callback will result in
130+
* @note Providing NULL for the characteristic callback results in
131131
* characteristic discovery being skipped for each matching
132132
* service. This allows for an inexpensive method to discover only
133133
* services.
@@ -161,9 +161,9 @@ class ServiceDiscovery {
161161
* Clear all ServiceDiscovery state of the associated object.
162162
*
163163
* 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'
167167
* reset() implementation.
168168
*
169169
* @return BLE_ERROR_NONE on success.

0 commit comments

Comments
 (0)