Skip to content

Commit e4e1052

Browse files
author
Amanda Butler
authored
Merge pull request #416 from VeijoPesonen/network_status_callback
Mbed OS 5.8 brings support for network interface status change callback
2 parents 4a0212e + 7a8a4c7 commit e4e1052

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ To bring up the network interface:
1515
1. Once you connect the EthInterface, you can use it as a
1616
target for opening [network sockets](/docs/v5.7/reference/network-socket.html).
1717

18-
### EthInterface example
18+
### EthInterface examples
1919

2020
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:
2121

2222
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/TCPSocket_Example/)](https://os.mbed.com/teams/mbed_example/code/TCPSocket_Example/file/6b383744246e/main.cpp)
2323

24+
Here is an example showing how to register a status callback that gets triggered when connection state changes. This also works with other network interfaces if support is provided.
25+
26+
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/TCPSocket_ConnStateCb_Example/)](https://os.mbed.com/teams/mbed_example/code/TCPSocket_ConnStateCb_Example/file/987d54985478/main.cpp/)
27+
2428
### Related content
2529

2630
- [Network socket](/docs/v5.7/reference/network-socket.html) API reference overview.

0 commit comments

Comments
 (0)