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
- DISCO_L475VG_IOT01A (embeds a ISM43362 WIFI module) <<<NEW<<<
- DISCO_F413ZH (embeds a ISM43362 WIFI module) <<<NEW<<<
Note: The ISM43362 WIFI Driver developed by ST Team can also be integrated in the mbed-os-example-client example.
Diff: main.cpp
- Revision:
- 21:b2f2f6a840b4
- Parent:
- 10:5b5beb106156
- Child:
- 24:323569a565ec
--- a/main.cpp Thu Jun 22 09:45:03 2017 +0100 +++ b/main.cpp Thu Jun 22 10:30:04 2017 +0100 @@ -21,12 +21,16 @@ #include "OdinWiFiInterface.h" OdinWiFiInterface wifi; +#elif TARGET_REALTEK_RTL8195AM +#include "RTWInterface.h" +RTWInterface wifi; + #else #if !TARGET_FF_ARDUINO #error [NOT_SUPPORTED] Only Arduino form factor devices are supported at this time #endif + #include "ESP8266Interface.h" - ESP8266Interface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX); #endif