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

This is an example of a Wi-Fi application using the Wi-Fi and network socket APIs that Mbed OS provides.

The program brings up the Wi-Fi and the underlying network interface and uses it to scan available networks, connects to a network, prints interface and connection details and performs an HTTP operation.

For more information about Wi-Fi APIs, please visit the Mbed OS Wi-Fi documentation.

This example has been used on the following platforms

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Thu Feb 22 08:32:38 2018 +0000
Parent:
0:0593b97dec0b
Child:
2:73e246fd7537
Commit message:
Update main.cpp / mbed_app.json

Changed in this revision

esp32-driver/.git/index Show annotated file Show diff for this revision Revisions of this file
esp8266-driver/.git/index Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
wifi-x-nucleo-idw01m1/.git/index Show annotated file Show diff for this revision Revisions of this file
Binary file esp32-driver/.git/index has changed
Binary file esp8266-driver/.git/index has changed
--- a/main.cpp	Thu Feb 22 05:44:51 2018 +0000
+++ b/main.cpp	Thu Feb 22 08:32:38 2018 +0000
@@ -29,6 +29,10 @@
 #include "RTWInterface.h"
 RTWInterface wifi;
 
+#elif TARGET_GR_LYCHEE
+#include "ESP32Interface.h"
+ESP32Interface wifi(P5_3, P3_14, P7_1, P0_1);
+
 #else // External WiFi modules
 
 #if MBED_CONF_APP_WIFI_SHIELD == WIFI_ESP8266
--- a/mbed_app.json	Thu Feb 22 05:44:51 2018 +0000
+++ b/mbed_app.json	Thu Feb 22 08:32:38 2018 +0000
@@ -43,13 +43,6 @@
         "NUCLEO_F401RE": {
             "wifi-tx": "D8",
             "wifi-rx": "D2"
-        },
-        "GR_LYCHEE": {
-            "wifi-shield": "WIFI_ESP32",
-            "wifi-en": "P5_3",
-            "wifi-io0": "P3_14",
-            "wifi-tx": "P7_1",
-            "wifi-rx": "P0_1"
         }
     }
 }
Binary file wifi-x-nucleo-idw01m1/.git/index has changed