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:
82:122bb3ae6de5
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-ssid": {
mbed_official 44:63be19b7a3db 4 "help": "WiFi SSID",
mbed_official 44:63be19b7a3db 5 "value": "\"SSID\""
mbed_official 44:63be19b7a3db 6 },
mbed_official 44:63be19b7a3db 7 "wifi-password": {
mbed_official 44:63be19b7a3db 8 "help": "WiFi Password",
mbed_official 44:63be19b7a3db 9 "value": "\"PASSWORD\""
mbed_official 44:63be19b7a3db 10 }
mbed_official 44:63be19b7a3db 11 },
mbed_official 44:63be19b7a3db 12 "target_overrides": {
mbed_official 44:63be19b7a3db 13 "*": {
mbed_official 44:63be19b7a3db 14 "platform.stdio-convert-newlines": true,
mbed_official 44:63be19b7a3db 15 "idw0xx1.expansion-board": "IDW01M1",
mbed_official 82:122bb3ae6de5 16 "idw0xx1.provide-default": true,
mbed_official 86:92e4be20dc8b 17 "idw0xx1.tx": "PA_9",
mbed_official 86:92e4be20dc8b 18 "idw0xx1.rx": "PA_10",
mbed_official 82:122bb3ae6de5 19 "drivers.uart-serial-txbuf-size": 730,
mbed_official 82:122bb3ae6de5 20 "drivers.uart-serial-rxbuf-size": 730
mbed_official 44:63be19b7a3db 21 },
mbed_official 44:63be19b7a3db 22 "UBLOX_EVK_ODIN_W2": {
mbed_official 44:63be19b7a3db 23 "target.device_has": ["EMAC"]
mbed_official 44:63be19b7a3db 24 }
mbed_official 44:63be19b7a3db 25 }
mbed_official 44:63be19b7a3db 26 }