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.

Revision:
65:c6833441fd15
Parent:
63:99e063d738ee
Child:
71:a0fbcc153b55
--- a/mbed_app.json	Wed Jun 06 09:15:02 2018 +0100
+++ b/mbed_app.json	Wed Jun 06 11:00:04 2018 +0100
@@ -29,24 +29,10 @@
             "target.device_has": ["EMAC"]
         },
         "DISCO_F413ZH": {
-            "wifi-shield": "WIFI_ISM43362",
-            "ism43362.wifi-miso": "PB_4",
-            "ism43362.wifi-mosi": "PB_5",
-            "ism43362.wifi-sclk": "PB_12",
-            "ism43362.wifi-nss": "PG_11",
-            "ism43362.wifi-reset": "PH_1",
-            "ism43362.wifi-dataready": "PG_12",
-            "ism43362.wifi-wakeup": "PB_15"
+            "wifi-shield": "WIFI_ISM43362"
         },
         "DISCO_L475VG_IOT01A": {
-            "wifi-shield": "WIFI_ISM43362",
-            "ism43362.wifi-miso": "PC_11",
-            "ism43362.wifi-mosi": "PC_12",
-            "ism43362.wifi-sclk": "PC_10",
-            "ism43362.wifi-nss": "PE_0",
-            "ism43362.wifi-reset": "PE_8",
-            "ism43362.wifi-dataready": "PE_1",
-            "ism43362.wifi-wakeup": "PB_13"
+            "wifi-shield": "WIFI_ISM43362"
         },
         "NUCLEO_L476RG": {
             "wifi-tx": "D8",