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.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Wed Jun 06 11:00:04 2018 +0100
Parent:
64:12cf9322d5da
Child:
66:2cf02c7d430c
Commit message:
Updating ISM43362 driver

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

Changed in this revision

mbed_app.json Show annotated file Show diff for this revision Revisions of this file
wifi-ism43362.lib Show annotated file Show diff for this revision Revisions of this file
--- 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",
--- a/wifi-ism43362.lib	Wed Jun 06 09:15:02 2018 +0100
+++ b/wifi-ism43362.lib	Wed Jun 06 11:00:04 2018 +0100
@@ -1,1 +1,1 @@
-https://github.com/armmbed/wifi-ism43362/#898ec07a06530bc65ba7525c048ba1fcb5e3b0c8
+https://github.com/armmbed/wifi-ism43362/#3154f96fd23522f6ef18fd248feb9214f94e32aa