A quick example of a simple WiFi application using the WiFi and network-socket APIs that is provided as a part of mbed-os.

The program brings up the WiFi and the underlying network interface, and uses it to scans available networks, connects to a network, prints interface and connection details and performs simple HTTP operation.

Supported hardware:

Not that the mbed target board the WiFi shield gets connected to shouldn't have any other network interface e.g. Ethernet.

ESP8266 is a fallback option and will be used if the build is for unsupported platform.

Committer:
mbed_official
Date:
Mon Nov 26 14:00:04 2018 +0000
Revision:
86:92e4be20dc8b
Parent:
44:63be19b7a3db
Child:
95:19412faf3667
Updated config files and fixed README.md minor displaying issues

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-wifi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 44:63be19b7a3db 1 {
mbed_official 44:63be19b7a3db 2 "config": {
mbed_official 44:63be19b7a3db 3 "wifi-shield": {
mbed_official 44:63be19b7a3db 4 "help": "Options are internal, WIFI_ESP8266, WIFI_IDW0XX1",
mbed_official 44:63be19b7a3db 5 "value": "WIFI_IDW0XX1"
mbed_official 44:63be19b7a3db 6 },
mbed_official 44:63be19b7a3db 7 "wifi-ssid": {
mbed_official 44:63be19b7a3db 8 "help": "WiFi SSID",
mbed_official 44:63be19b7a3db 9 "value": "\"SSID\""
mbed_official 44:63be19b7a3db 10 },
mbed_official 44:63be19b7a3db 11 "wifi-password": {
mbed_official 44:63be19b7a3db 12 "help": "WiFi Password",
mbed_official 44:63be19b7a3db 13 "value": "\"PASSWORD\""
mbed_official 44:63be19b7a3db 14 }
mbed_official 44:63be19b7a3db 15 },
mbed_official 44:63be19b7a3db 16 "target_overrides": {
mbed_official 44:63be19b7a3db 17 "*": {
mbed_official 44:63be19b7a3db 18 "platform.stdio-convert-newlines": true,
mbed_official 44:63be19b7a3db 19 "idw0xx1.expansion-board": "IDW04A1",
mbed_official 86:92e4be20dc8b 20 "idw0xx1.provide-default": true,
mbed_official 86:92e4be20dc8b 21 "idw0xx1.tx": "PA_9",
mbed_official 86:92e4be20dc8b 22 "idw0xx1.rx": "PA_10",
mbed_official 44:63be19b7a3db 23 "drivers.uart-serial-txbuf-size": 750,
mbed_official 44:63be19b7a3db 24 "drivers.uart-serial-rxbuf-size": 750
mbed_official 44:63be19b7a3db 25 },
mbed_official 44:63be19b7a3db 26 "UBLOX_EVK_ODIN_W2": {
mbed_official 44:63be19b7a3db 27 "target.device_has": ["EMAC"]
mbed_official 44:63be19b7a3db 28 }
mbed_official 44:63be19b7a3db 29 },
mbed_official 44:63be19b7a3db 30 "macros": ["IDW04A1_WIFI_HW_BUG_WA"]
mbed_official 44:63be19b7a3db 31 }