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

Committer:
adustm
Date:
Tue Feb 27 14:07:49 2018 +0100
Revision:
58:8d4bde75ebb9
Parent:
57:c8c960b825f0
Add DISCO_F413ZH (using ism43362 driver)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:857719181846 1 {
mbed_official 0:857719181846 2 "config": {
adustm adustm@gmail.com 55:23a0d1e8270a 3 "wifi-shield": {
adustm 57:c8c960b825f0 4 "help": "Options are internal, WIFI_IDW0XX1",
mbed_official 43:45429aa163a0 5 "value": "internal"
adustm adustm@gmail.com 55:23a0d1e8270a 6 },
mbed_official 0:857719181846 7 "wifi-ssid": {
mbed_official 0:857719181846 8 "help": "WiFi SSID",
mbed_official 0:857719181846 9 "value": "\"SSID\""
mbed_official 0:857719181846 10 },
mbed_official 0:857719181846 11 "wifi-password": {
mbed_official 0:857719181846 12 "help": "WiFi Password",
mbed_official 10:5b5beb106156 13 "value": "\"PASSWORD\""
mbed_official 10:5b5beb106156 14 },
mbed_official 10:5b5beb106156 15 "wifi-tx": {
mbed_official 10:5b5beb106156 16 "help": "TX pin for serial connection to external device",
mbed_official 10:5b5beb106156 17 "value": "D1"
mbed_official 10:5b5beb106156 18 },
mbed_official 10:5b5beb106156 19 "wifi-rx": {
mbed_official 10:5b5beb106156 20 "help": "RX pin for serial connection to external device",
mbed_official 10:5b5beb106156 21 "value": "D0"
adustm adustm@gmail.com 55:23a0d1e8270a 22 },
adustm adustm@gmail.com 55:23a0d1e8270a 23 "wifi-spi_miso": {
adustm adustm@gmail.com 55:23a0d1e8270a 24 "help": "SPI-MISO connection to external device",
adustm adustm@gmail.com 55:23a0d1e8270a 25 "value": "PC_11"
adustm adustm@gmail.com 55:23a0d1e8270a 26 },
adustm adustm@gmail.com 55:23a0d1e8270a 27 "wifi-spi_mosi": {
adustm adustm@gmail.com 55:23a0d1e8270a 28 "help": "SPI-MOSI connection to external device",
adustm adustm@gmail.com 55:23a0d1e8270a 29 "value": "PC_12"
adustm adustm@gmail.com 55:23a0d1e8270a 30 },
adustm adustm@gmail.com 55:23a0d1e8270a 31 "wifi-spi_sclk": {
adustm adustm@gmail.com 55:23a0d1e8270a 32 "help": "SPI-CLOCK connection to external device",
adustm adustm@gmail.com 55:23a0d1e8270a 33 "value": "PC_10"
adustm adustm@gmail.com 55:23a0d1e8270a 34 },
adustm adustm@gmail.com 55:23a0d1e8270a 35 "wifi-spi_nss": {
adustm adustm@gmail.com 55:23a0d1e8270a 36 "help": "SPI chip select of external device",
adustm adustm@gmail.com 55:23a0d1e8270a 37 "value": "PE_0"
adustm adustm@gmail.com 55:23a0d1e8270a 38 },
adustm adustm@gmail.com 55:23a0d1e8270a 39 "wifi-reset": {
adustm adustm@gmail.com 55:23a0d1e8270a 40 "help": "WIFI module reset pin",
adustm adustm@gmail.com 55:23a0d1e8270a 41 "value": "PE_8"
adustm adustm@gmail.com 55:23a0d1e8270a 42 },
adustm adustm@gmail.com 55:23a0d1e8270a 43 "wifi-dataready": {
adustm adustm@gmail.com 55:23a0d1e8270a 44 "help": "WIFI module data ready pin",
adustm adustm@gmail.com 55:23a0d1e8270a 45 "value": "PE_1"
adustm adustm@gmail.com 55:23a0d1e8270a 46 },
adustm adustm@gmail.com 55:23a0d1e8270a 47 "wifi-wakeup": {
adustm adustm@gmail.com 55:23a0d1e8270a 48 "help": "WIFI module wakeup pin",
adustm adustm@gmail.com 55:23a0d1e8270a 49 "value": "PB_12"
mbed_official 0:857719181846 50 }
mbed_official 0:857719181846 51 },
mbed_official 0:857719181846 52 "target_overrides": {
mbed_official 35:052c1ba06ce7 53 "*": {
mbed_official 35:052c1ba06ce7 54 "platform.stdio-convert-newlines": true
mbed_official 35:052c1ba06ce7 55 },
mbed_official 10:5b5beb106156 56 "NUCLEO_L476RG": {
mbed_official 10:5b5beb106156 57 "wifi-tx": "D8",
mbed_official 10:5b5beb106156 58 "wifi-rx": "D2"
mbed_official 32:bca3f5f442b3 59 },
mbed_official 32:bca3f5f442b3 60 "NUCLEO_F401RE": {
mbed_official 32:bca3f5f442b3 61 "wifi-tx": "D8",
mbed_official 32:bca3f5f442b3 62 "wifi-rx": "D2"
adustm adustm@gmail.com 55:23a0d1e8270a 63 },
adustm adustm@gmail.com 55:23a0d1e8270a 64 "DISCO_L475VG_IOT1A": {
adustm adustm@gmail.com 55:23a0d1e8270a 65 "wifi-spi_miso": "PC_11",
adustm adustm@gmail.com 55:23a0d1e8270a 66 "wifi-spi_mosi": "PC_12",
adustm adustm@gmail.com 55:23a0d1e8270a 67 "wifi-spi_sclk": "PC_10",
adustm adustm@gmail.com 55:23a0d1e8270a 68 "wifi-spi_nss": "PE_0",
adustm adustm@gmail.com 55:23a0d1e8270a 69 "wifi-reset": "PE_8",
adustm adustm@gmail.com 55:23a0d1e8270a 70 "wifi-dataready": "PE_1",
adustm adustm@gmail.com 55:23a0d1e8270a 71 "wifi-wakeup": "PB_12"
adustm adustm@gmail.com 55:23a0d1e8270a 72 },
adustm adustm@gmail.com 55:23a0d1e8270a 73 "DISCO_F413ZH": {
adustm adustm@gmail.com 55:23a0d1e8270a 74 "wifi-spi_miso": "PB_4",
adustm adustm@gmail.com 55:23a0d1e8270a 75 "wifi-spi_mosi": "PB_5",
adustm adustm@gmail.com 55:23a0d1e8270a 76 "wifi-spi_sclk": "PB_12",
adustm adustm@gmail.com 55:23a0d1e8270a 77 "wifi-spi_nss": "PG_11",
adustm adustm@gmail.com 55:23a0d1e8270a 78 "wifi-reset": "PH_1",
adustm adustm@gmail.com 55:23a0d1e8270a 79 "wifi-dataready": "PG_12",
adustm adustm@gmail.com 55:23a0d1e8270a 80 "wifi-wakeup": "PB_15"
mbed_official 0:857719181846 81 }
mbed_official 0:857719181846 82 }
mbed_official 0:857719181846 83 }