WiFi example for mbed OS, fork from https://github.com/ARMmbed/mbed-os-example-wifi
This is an example of a Wi-Fi application using the Wi-Fi and network socket APIs that Mbed OS provides.
The program brings up the Wi-Fi and the underlying network interface and uses it to scan available networks, connects to a network, prints interface and connection details and performs an HTTP operation.
For more information about Wi-Fi APIs, please visit the Mbed OS Wi-Fi documentation.
This example has been used on the following platforms
mbed_app.json
- Committer:
- group-Renesas-Electronics-Corp
- Date:
- 2018-02-22
- Revision:
- 0:0593b97dec0b
- Child:
- 1:67275d54581f
File content as of revision 0:0593b97dec0b:
{ "config": { "wifi-shield": { "help": "Options are internal, WIFI_ESP8266, WIFI_IDW0XX1, WIFI_ESP32", "value": "internal" }, "wifi-ssid": { "help": "WiFi SSID", "value": "\"SSID\"" }, "wifi-password": { "help": "WiFi Password", "value": "\"PASSWORD\"" }, "wifi-tx": { "help": "TX pin for serial connection to external device", "value": "D1" }, "wifi-rx": { "help": "RX pin for serial connection to external device", "value": "D0" }, "wifi-en": { "help": "EN pin for ESP32", "value": "NC" }, "wifi-io0": { "help": "IO0 pin for ESP32", "value": "NC" } }, "target_overrides": { "*": { "platform.stdio-convert-newlines": true }, "UBLOX_EVK_ODIN_W2": { "target.device_has": ["EMAC"] }, "NUCLEO_L476RG": { "wifi-tx": "D8", "wifi-rx": "D2" }, "NUCLEO_F401RE": { "wifi-tx": "D8", "wifi-rx": "D2" }, "GR_LYCHEE": { "wifi-shield": "WIFI_ESP32", "wifi-en": "P5_3", "wifi-io0": "P3_14", "wifi-tx": "P7_1", "wifi-rx": "P0_1" } } }