Skip to content

Commit 5e84262

Browse files
author
Amanda Butler
authored
Edit GattServer.md
Edit file, mostly for active voice.
1 parent 6ec7367 commit 5e84262

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api/bluetooth/GattServer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## GattServer
22

3-
Generic Attribute Profile (GATT) is used to discover services, characteristics and descriptors and to perform operations on them. The interaction happens between two peers, one of which is the client (who initiates interactions) and the other the server (which responds). Attribute Protocol (ATT) is used to implement this interaction.
3+
You can use Generic Attribute Profile (GATT) to discover services, characteristics and descriptors and to perform operations on them. The interaction happens between two peers, one of which is the client (which initiates interactions) and the other is the server (which responds). You can use Attribute Protocol (ATT) to implement this interaction.
44

5-
'GattServer' is a collection of GattServices. These services contain characteristics that a `GattClient` on the peer connected to the device may read or write. These characteristics may also emit updates to subscribed clients when their values change.
5+
`GattServer` is a collection of GattServices. These services contain characteristics that a `GattClient` on the peer connected to the device may read or write. These characteristics may also emit updates to subscribed clients when their values change.
66

77
#### Server layout
88

@@ -18,13 +18,13 @@ You can query the server by invoking the function `areUpdatesEnabled()` to find
1818

1919
#### Attribute Protocol Maximum Transmission Unit (ATT_MTU)
2020

21-
ATT_MTU is the maximum size of the attribute protocol packet. Operation on attributes too large to fit into a single packet will be split across multiple operations.
21+
`ATT_MTU` is the maximum size of the attribute protocol packet. Operation on attributes too large to fit into a single packet are split across multiple operations.
2222

23-
This is independent of the Data Length which controls the over-the-air packet payload size (which is dealt with in the GAP). An L2CAP packet containing the attribute protocol packet will be fragmented over many such packets if required.
23+
This is independent of the data length, which controls the over-the-air packet payload size (which the GAP handles). An L2CAP packet containing the attribute protocol packet is fragmented over many packets if required.
2424

25-
Only `GattClient` can trigger the exchange of ATT_MTU between client and server. If an exchange happens the biggest value possible across both devices will be used.
25+
Only `GattClient` can trigger the exchange of `ATT_MTU` between client and server. If an exchange happens, the biggest value possible across both devices will be used.
2626

27-
ATT_MTU is at least 23 octets by default. If a larger size is negotiated the user application will be informed through the `onAttMtuChange` function called in the `GattServer::EventHandler` (`GattClient::EventHandler` will also be informed).
27+
`ATT_MTU` is at least 23 octets by default. If a larger size is negotiated, the user application will be informed through the `onAttMtuChange` function called in the `GattServer::EventHandler`. (`GattClient::EventHandler` is also informed.)
2828

2929
#### Events
3030

0 commit comments

Comments
 (0)