A quick example of a simple WiFi application using the WiFi and network-socket APIs that is provided as a part of mbed-os.

Dependencies:   C12832

mbed_app.json

Committer:
CJW
Date:
2018-03-10
Revision:
57:921d2524844d
Parent:
56:bea82468efd3

File content as of revision 57:921d2524844d:

{
    "config": {
	"wifi-shield": {
            "help": "Options are internal, WIFI_ESP8266, WIFI_IDW0XX1",
            "value": "internal"
	},
        "wifi-ssid": {
            "help": "WiFi SSID",
            "value": "\"SnackBeans\""
        },
        "wifi-password": {
            "help": "WiFi Password",
            "value": "\"crocodile\""
        },
        "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"
        }
    },
    "target_overrides": {
        "*": {
            "platform.stdio-convert-newlines": true
        },
        "UBLOX_EVK_ODIN_W2": {
            "target.device_has": ["EMAC"]
        },
        "NUCLEO_L476RG": {
            "wifi-tx": "D8",
            "wifi-rx": "D2"
        },
        "NUCLEO_F401RE": {
            "wifi-tx": "D8",
            "wifi-rx": "D2"
        }
    }
}