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:
- 5:3e952c60d705
- Parent:
- 0:17bd84fc5087
- Child:
- 12:2e7466eba9a3
--- a/README.md Mon Nov 28 16:00:06 2016 +0000 +++ b/README.md Thu Dec 15 16:15:05 2016 +0000 @@ -6,21 +6,9 @@ The program brings up an underlying network interface, and uses it to perform an HTTP transaction over a TCPSocket. -### Ethernet ### - -By default, the example should use the ethernet interface available on the board. Simply -compile, flash, and run. - -### WiFi ### - -To enable WiFi, you will need an [esp8266](https://developer.mbed.org/teams/ESP8266/). -To enable WiFi in the example, you will need to define three defines during compile time. - -``` bash --DMBED_DEMO_WIFI # enables wifi --DMBED_DEMO_WIFI_SSID=ssid # ssid --DMBED_DEMO_WIFI_PASS=pass # passphrase -``` +**Note:** The current example is limited to the ethernet interface on supported devices. +To use the example with a different interface, you will need to modify main.cpp and +replace the EthernetInterface class with the appropriate interface. ### Documentation ###