This is a quick example of a simple HTTP client program using the network-socket API that is provided as a part of mbed-os. The program brings up an underlying network interface, and uses it to perform an HTTP transaction over a TCPSocket.
README.md@7:6b328c773e79, 2017-01-04 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Jan 04 16:15:04 2017 +0000
- Revision:
- 7:6b328c773e79
- Parent:
- 5:3e952c60d705
- Child:
- 12:2e7466eba9a3
Merge pull request #6 from adbridge/master
Updating mbed-os to mbed-os-5.3.2
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-sockets
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:17bd84fc5087 | 1 | ### Getting started with the network-socket API ### |
mbed_official | 0:17bd84fc5087 | 2 | |
mbed_official | 0:17bd84fc5087 | 3 | This is a quick example of a simple HTTP client program using the |
mbed_official | 0:17bd84fc5087 | 4 | network-socket API that is provided as a part of [mbed-os](github.com/armmbed/mbed-os). |
mbed_official | 0:17bd84fc5087 | 5 | |
mbed_official | 0:17bd84fc5087 | 6 | The program brings up an underlying network interface, and uses it to perform an HTTP |
mbed_official | 0:17bd84fc5087 | 7 | transaction over a TCPSocket. |
mbed_official | 0:17bd84fc5087 | 8 | |
mbed_official | 5:3e952c60d705 | 9 | **Note:** The current example is limited to the ethernet interface on supported devices. |
mbed_official | 5:3e952c60d705 | 10 | To use the example with a different interface, you will need to modify main.cpp and |
mbed_official | 5:3e952c60d705 | 11 | replace the EthernetInterface class with the appropriate interface. |
mbed_official | 0:17bd84fc5087 | 12 | |
mbed_official | 0:17bd84fc5087 | 13 | ### Documentation ### |
mbed_official | 0:17bd84fc5087 | 14 | |
mbed_official | 0:17bd84fc5087 | 15 | More information on the network-socket API can be found in the [mbed handbook](https://docs.mbed.com/docs/mbed-os-api-reference/en/5.1/APIs/communication/network_sockets/). |