Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os-example-wifi-DISCO_IOTBOARD_MQTT MQTT
Revision 57:c8c960b825f0, committed 2018-02-27
- Comitter:
- adustm
- Date:
- Tue Feb 27 10:59:23 2018 +0100
- Parent:
- 56:0bfadb4cb15e
- Child:
- 58:8d4bde75ebb9
- Commit message:
- Remove ESP8266 from this example
Changed in this revision
--- a/Jenkinsfile Tue Feb 27 10:06:35 2018 +0100 +++ b/Jenkinsfile Tue Feb 27 10:59:23 2018 +0100 @@ -14,10 +14,7 @@ // List of targets with supported RF shields to compile def targets = [ "UBLOX_EVK_ODIN_W2": ["builtin"], - "REALTEK_RTL8195AM": ["builtin"], - "K64F": ["WIFI_ESP8266"], "NUCLEO_F401RE": ["WIFI_IDW0XX1"], - "NUCLEO_F429ZI": ["WIFI_ESP8266"], "DISCO_L475VG_IOT01A": ["WIFI_ISM43362"] ] @@ -31,8 +28,7 @@ // Supported RF shields def radioshields = [ "builtin", - "WIFI_IDW0XX1", - "WIFI_ESP8266" + "WIFI_IDW0XX1" ] def stepsForParallel = [:]
--- a/README.md Tue Feb 27 10:06:35 2018 +0100
+++ b/README.md Tue Feb 27 10:59:23 2018 +0100
@@ -12,24 +12,12 @@
### Supported hardware ###
-* [u-blox Odin board](https://os.mbed.com/platforms/ublox-EVK-ODIN-W2/) built-in Wi-Fi module.
-* [Realtek RTL8195AM](https://os.mbed.com/platforms/REALTEK-RTL8195AM/) built-in Wi-Fi module.
* [NUCLEO-F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) with [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) Wi-Fi expansion board using pins D8 and D2 _(of the Arduino connector)_.
* [NUCLEO-F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) with [X-NUCLEO-IDW01M1](https://os.mbed.com/components/X-NUCLEO-IDW01M1/) Wi-Fi expansion board using pins PA_9 and PA_10 _(of the Morpho connector)_.
-* [NUCLEO-F429ZI](https://os.mbed.com/platforms/ST-Nucleo-F429ZI/) with ESP8266-01 module using pins D1 and D0.
-* [NUCLEO-L476RG](https://os.mbed.com/platforms/ST-Nucleo-L476RG/) with ESP8266-01 module using pins D8 and D2.
* [DISCO_L475VG_IOT01A](https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/) with ISM43362 built-in module
-* Other Mbed targets with an ESP8266 module, [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) or [X-NUCLEO-IDW01M1](https://os.mbed.com/components/X-NUCLEO-IDW01M1/) expansion board.
+* Other Mbed targets with [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) or [X-NUCLEO-IDW01M1](https://os.mbed.com/components/X-NUCLEO-IDW01M1/) expansion board.
*(The Mbed target board the Wi-Fi shield connects to shouldn't have any other network interface, for example Ethernet.)*
-ESP8266 is a fallback option if the build is for unsupported platform.
-
-#### Connecting the ESP8266 ####
-
-To connect the ESP8266 module to your development board, look at the [ESP8266 Cookbook page](https://developer.mbed.org/users/4180_1/notebook/using-the-esp8266-with-the-mbed-lpc1768/). In general, this means hooking up the ESP8266 TX pin to `D0` and the ESP8266 RX pin to `D1` on your development board.
-
-**Note:** On NUCLEO development boards, pins `D0` and `D1` are used for serial communication with the computer. Use pins `D8` (to ESP8266 TX) and `D2` (to ESP8266 RX) instead.
-
#### Connecting the X-NUCLEO-IDW0XX1 ####
To connect the [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) or [X-NUCLEO-IDW01M1](https://developer.mbed.org/components/X-NUCLEO-IDW01M1/) expansion board to your NUCLEO development board, plug the expansion board on top of the NUCLEO board using the Arduino or Morpho connector.
@@ -50,8 +38,8 @@
```
"config": {
"wifi-shield": {
- "help": "Options are WIFI_ESP8266, WIFI_IDW0XX1",
- "value": "WIFI_ESP8266"
+ "help": "Options are WIFI_IDW0XX1",
+ "value": "WIFI_IDW0XX1"
},
"wifi-ssid": {
"help": "WiFi SSID",
@@ -64,7 +52,7 @@
},
```
- Sample ```mbed_app.json``` files are provided for ESP8266 (```mbed_app_esp8266.json```), X-NUCLEO-IDW04A1 (```mbed_app_idw04a1.json```), X-NUCLEO-IDW01M1 (```mbed_app_idw01m1```) and DISCO_L475VG_IOT01A/ISM43362 (```mbed_app_ism43362.json```)
+ Sample ```mbed_app.json``` files are provided for X-NUCLEO-IDW04A1 (```mbed_app_idw04a1.json```), X-NUCLEO-IDW01M1 (```mbed_app_idw01m1```) and DISCO_L475VG_IOT01A/ISM43362 (```mbed_app_ism43362.json```)
For built-in Wi-Fi, ignore the value of `wifi-shield`.
--- a/esp8266-driver.lib Tue Feb 27 10:06:35 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://github.com/armmbed/esp8266-driver/#264468722a97cc2c8e0a517da06a542eb52fb9cb
--- a/main.cpp Tue Feb 27 10:06:35 2018 +0100 +++ b/main.cpp Tue Feb 27 10:59:23 2018 +0100 @@ -1,5 +1,5 @@ /* WiFi Example - * Copyright (c) 2016 ARM Limited + * Copyright (c) 2018 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,27 +17,15 @@ #include "mbed.h" #include "TCPSocket.h" -#define WIFI_ESP8266 1 #define WIFI_IDW0XX1 2 -#if TARGET_UBLOX_EVK_ODIN_W2 -#include "OdinWiFiInterface.h" -OdinWiFiInterface wifi; - -#elif TARGET_REALTEK_RTL8195AM -#include "RTWInterface.h" -RTWInterface wifi; - -#elif TARGET_DISCO_L475VG_IOT01A +#if defined(TARGET_DISCO_L475VG_IOT01A) #include "ISM43362Interface.h" ISM43362Interface wifi(MBED_CONF_APP_WIFI_SPI_MOSI, MBED_CONF_APP_WIFI_SPI_MISO, MBED_CONF_APP_WIFI_SPI_SCLK, MBED_CONF_APP_WIFI_SPI_NSS, MBED_CONF_APP_WIFI_RESET, MBED_CONF_APP_WIFI_DATAREADY, MBED_CONF_APP_WIFI_WAKEUP, false); #else // External WiFi modules -#if MBED_CONF_APP_WIFI_SHIELD == WIFI_ESP8266 -#include "ESP8266Interface.h" -ESP8266Interface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX); -#elif MBED_CONF_APP_WIFI_SHIELD == WIFI_IDW0XX1 +#if MBED_CONF_APP_WIFI_SHIELD == WIFI_IDW0XX1 #include "SpwfSAInterface.h" SpwfSAInterface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX); #endif // MBED_CONF_APP_WIFI_SHIELD == WIFI_IDW0XX1
--- a/mbed_app.json Tue Feb 27 10:06:35 2018 +0100
+++ b/mbed_app.json Tue Feb 27 10:59:23 2018 +0100
@@ -1,7 +1,7 @@
{
"config": {
"wifi-shield": {
- "help": "Options are internal, WIFI_ESP8266, WIFI_IDW0XX1",
+ "help": "Options are internal, WIFI_IDW0XX1",
"value": "internal"
},
"wifi-ssid": {
@@ -53,9 +53,6 @@
"*": {
"platform.stdio-convert-newlines": true
},
- "UBLOX_EVK_ODIN_W2": {
- "target.device_has": ["EMAC"]
- },
"NUCLEO_L476RG": {
"wifi-tx": "D8",
"wifi-rx": "D2"
--- a/mbed_app_esp8266.json Tue Feb 27 10:06:35 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-{
- "config": {
- "wifi-shield": {
- "help": "Options are internal, WIFI_ESP8266, WIFI_IDW0XX1",
- "value": "WIFI_ESP8266"
- },
- "wifi-ssid": {
- "help": "WiFi SSID",
- "value": "\"SSID\""
- },
- "wifi-password": {
- "help": "WiFi Password",
- "value": "\"PASSWORD\""
- },
- "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"
- }
- }
-}