Skip to content

Commit 5213453

Browse files
author
Amanda Butler
authored
Copy edit BatteryService.h
Make minor copy edits, mostly for active voice and U.S. spelling.
1 parent 423cd23 commit 5213453

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

features/FEATURE_BLE/ble/services/BatteryService.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@
2727
*
2828
* The battery service exposes the charge level of the battery of the device.
2929
* This information is exposed as a percentage from 0% to 100%; a value of 0%
30-
* represents a fully discharged battery while a value of 100% represents a
30+
* represents a fully discharged battery, and a value of 100% represents a
3131
* fully charged battery.
3232
*
33-
* Clients can read the current charge level and subscribe for server initiated
34-
* updates of the charge level. The server delivers these updates to subscribed
33+
* Clients can read the current charge level and subscribe to server initiated
34+
* updates of the charge level. The server delivers these updates to the subscribed
3535
* client in a notification packet.
3636
*
37-
* The subscription mechanism is usefull to save power; it avoids unecessary data
38-
* traffic between the client and the server which may be induced by polling the
37+
* The subscription mechanism is useful to save power; it avoids unecessary data
38+
* traffic between the client and the server, which may be induced by polling the
3939
* battery level characteristic value.
4040
*
4141
* @par usage
4242
*
43-
* When this class is instantiated it adds a Battery service in the GattServer.
43+
* When this class is instantiated, it adds a battery service in the GattServer.
4444
*
4545
* The application code can use the function updateBatteryLevel() to update the
46-
* charge level exposed by the service and notify subscribed client that the
46+
* charge level that the service exposes and to notify the subscribed client that the
4747
* value changed.
4848
*
49-
* @note Specification of the Battery service can be found here:
49+
* @note You can find specification of the battery service here:
5050
* https://www.bluetooth.com/specifications/gatt
5151
*
52-
* @important Multiple instances of this Battery service are not supported.
52+
* @important Multiple instances of this battery service are not supported.
5353
*/
5454
class BatteryService {
5555
public:
@@ -86,11 +86,11 @@ class BatteryService {
8686
}
8787

8888
/**
89-
* Update the battery charge level exposed by the service.
89+
* Update the battery charge level that the service exposes.
9090
*
91-
* The server will send a notification of the new value to clients that have
92-
* subscribed to the battery level characteristic updates and clients
93-
* reading the charge level after the update will obtain the updated value.
91+
* The server sends a notification of the new value to clients that have
92+
* subscribed to the battery level characteristic updates, and clients
93+
* reading the charge level after the update obtain the updated value.
9494
*
9595
* @param newLevel Charge level of the battery. It is a percentage of the
9696
* remaining charge between 0% and 100%.
@@ -113,7 +113,7 @@ class BatteryService {
113113
/**
114114
* Reference to the underlying BLE instance that this object is attached to.
115115
*
116-
* The services and characteristics will be registered in the GattServer of
116+
* The services and characteristics are registered in the GattServer of
117117
* this BLE instance.
118118
*/
119119
BLE &ble;
@@ -124,7 +124,7 @@ class BatteryService {
124124
uint8_t batteryLevel;
125125

126126
/**
127-
* The GATT characteristic which expose the charge level.
127+
* The GATT characteristic, which exposes the charge level.
128128
*/
129129
ReadOnlyGattCharacteristic<uint8_t> batteryLevelCharacteristic;
130130
};

0 commit comments

Comments
 (0)