![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
nucleo f767zi onenet edp test
Dependencies: cJSON_lib Common_lib EdpKit_lib
Diff: README.md
- Revision:
- 0:17bd84fc5087
- Child:
- 5:3e952c60d705
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Wed Oct 26 12:00:09 2016 +0100 @@ -0,0 +1,27 @@ +### Getting started with the network-socket API ### + +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](github.com/armmbed/mbed-os). + +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 +``` + +### Documentation ### + +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/).