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:
Sun Jan 27 18:30:04 2019 +0000
Parent:
92:4d6f7b007221
Child:
94:12a7838a3bac
Commit message:
Link to os.mbed.com/docs from README.md

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

Changed in this revision

CONTRIBUTING.md Show annotated file Show diff for this revision Revisions of this file
README.md Show annotated file Show diff for this revision Revisions of this file
--- a/CONTRIBUTING.md	Thu Jan 17 12:45:04 2019 +0000
+++ b/CONTRIBUTING.md	Sun Jan 27 18:30:04 2019 +0000
@@ -2,4 +2,4 @@
 
 Mbed OS is an open-source, device software platform for the Internet of Things. Contributions are an important part of the platform, and our goal is to make it as simple as possible to become a contributor.
 
-To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for [contributing to Mbed OS](https://os.mbed.com/docs/latest/reference/contributing.html).
+To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for [contributing to Mbed OS](https://os.mbed.com/docs/mbed-os/latest/contributing/index.html).
--- a/README.md	Thu Jan 17 12:45:04 2019 +0000
+++ b/README.md	Sun Jan 27 18:30:04 2019 +0000
@@ -2,6 +2,8 @@
 
 Wi-Fi example for Mbed OS
 
+(Note: To see this example in a rendered form you can import into the Arm Mbed Online Compiler, please see [the documentation](https://os.mbed.com/docs/mbed-os/latest/apis/wi-fi.html#wi-fi-example).)
+
 ## Getting started with the Wi-Fi API ##
 
 This is an example of a Wi-Fi application using the Wi-Fi APIs that [Mbed OS](https://github.com/ARMmbed/mbed-os) provides.