Skip to content

Commit 57797bc

Browse files
Amanda ButlerSeppo Takalo
authored andcommitted
Copy edit EthInterface.md
Make minor copy edits.
1 parent c4a906f commit 57797bc

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/reference/api/connectivity/networksocket/EthInterface.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Ethernet driver for the target and select correct network stack.
99

1010
### Usage
1111

12-
For statically initializing the driver, just create an object without passing any parameters
12+
To statically initialize the driver, create an object without passing any parameters:
1313

1414
```cpp
1515
EthernetInterface eth;
1616
```
1717

18-
Then, if default configuration is enough, bringing the interface up:
18+
Then, if the default configuration is enough, bring up the interface:
1919

2020
```cpp
2121
nsapi_error_t status = eth.connect();
@@ -33,22 +33,19 @@ UDPSocket socket;
3333
socket.open(&eth);
3434
```
3535

36-
3736
### Configuration
3837

39-
For EthernetInterface, there is two possible configurations
38+
For EthernetInterface, there are two possible configurations:
4039

41-
1. Use DHCP for network addressing. This is the default.
42-
2. Use statically configured IP addresses.
40+
- Use DHCP for network addressing. This is the default.
41+
- Use statically configured IP addresses.
4342

4443
Refer to the API below for how to set the IP addresses by calling the `set_network()` function.
4544

46-
4745
### EthInterface class reference
4846

4947
[![View code](https://www.mbed.com/embed/?type=library)](http://os-doc-builder.test.mbed.com/docs/development/mbed-os-api-doxy/class_eth_interface.html)
5048

51-
5249
### EthInterface examples
5350

5451
Here is an example of an HTTP client program. The program brings up Ethernet as the underlying network interface and uses it to perform an HTTP transaction over a TCPSocket:

0 commit comments

Comments
 (0)