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.
Diff: README.md
- Revision:
- 40:afef93b6d854
- Parent:
- 33:d470701728e6
- Child:
- 49:1923a727df5b
--- a/README.md Tue Mar 20 10:00:03 2018 +0000 +++ b/README.md Tue Mar 27 12:45:08 2018 +0100 @@ -10,10 +10,18 @@ To use the example with a different interface, you will need to modify main.cpp and replace the EthernetInterface class with the appropriate interface. -**Note:** The default serial port baud rate is 9600 bit/s. +### Building + +``` +mbed compile -t <toolchain> -m <target> +``` + +For example, building for K64F using GCC: `mbed compile -t GCC_ARM -m K64F` ### Expected output ### +**Note:** The default serial port baud rate is 9600 bit/s. + ``` IP address: 10.118.14.45 Netmask: 255.255.252.0