WiFi example for mbed OS, fork from https://github.com/ARMmbed/mbed-os-example-wifi

This is 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.

This example has been used on the following platforms

Note: The ISM43362 WIFI Driver developed by ST Team can also be integrated in the mbed-os-example-client example.

DISCO_L475VG_IOT01A DISCO_F413ZH

mbed_app.json

Committer:
adustm
Date:
2018-02-27
Revision:
58:8d4bde75ebb9
Parent:
57:c8c960b825f0

File content as of revision 58:8d4bde75ebb9:

{
    "config": {
        "wifi-shield": {
            "help": "Options are internal, WIFI_IDW0XX1",
            "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-spi_miso": {
            "help": "SPI-MISO connection to external device",
            "value": "PC_11"
        },
        "wifi-spi_mosi": {
            "help": "SPI-MOSI connection to external device",
            "value": "PC_12"
        },
        "wifi-spi_sclk": {
            "help": "SPI-CLOCK connection to external device",
            "value": "PC_10"
        },
        "wifi-spi_nss": {
            "help": "SPI chip select of external device",
            "value": "PE_0"
        },
        "wifi-reset": {
            "help": "WIFI module reset pin",
            "value": "PE_8"
        },
        "wifi-dataready": {
            "help": "WIFI module data ready pin",
            "value": "PE_1"
        },
        "wifi-wakeup": {
            "help": "WIFI module wakeup pin",
            "value": "PB_12"
        }
    },
    "target_overrides": {
        "*": {
            "platform.stdio-convert-newlines": true
        },
        "NUCLEO_L476RG": {
            "wifi-tx": "D8",
            "wifi-rx": "D2"
        },
        "NUCLEO_F401RE": {
            "wifi-tx": "D8",
            "wifi-rx": "D2"
        },
        "DISCO_L475VG_IOT1A": {
            "wifi-spi_miso": "PC_11",
            "wifi-spi_mosi": "PC_12",
            "wifi-spi_sclk": "PC_10",
            "wifi-spi_nss": "PE_0",
            "wifi-reset": "PE_8",
            "wifi-dataready": "PE_1",
            "wifi-wakeup": "PB_12"
        },
        "DISCO_F413ZH": {
            "wifi-spi_miso": "PB_4",
            "wifi-spi_mosi": "PB_5",
            "wifi-spi_sclk": "PB_12",
            "wifi-spi_nss": "PG_11",
            "wifi-reset": "PH_1",
            "wifi-dataready": "PG_12",
            "wifi-wakeup": "PB_15"
        }
    }
}