Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 2c1388d

Browse files
authored
v1.0.11
### New in v1.0.11 1. Add support to all STM32F/L/H/G/WB/MP1 2. Add support to Seeeduino SAMD21/SAMD51 boards (SEEED_WIO_TERMINAL, SEEED_FEMTO_M0, SEEED_XIAO_M0, Wio_Lite_MG126, WIO_GPS_BOARD, SEEEDUINO_ZERO, SEEEDUINO_LORAWAN, SEEED_GROVE_UI_WIRELESS, etc.)
1 parent 4bb8170 commit 2c1388d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1387
-540
lines changed

README.md

+184-59
Large diffs are not rendered by default.

examples/AdvancedWebServer/AdvancedWebServer.ino

+8-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Forked and modified from ESP8266 https://github.com/esp8266/Arduino/releases
77
Built by Khoi Hoang https://github.com/khoih-prog/ESP8266_AT_WebServer
88
Licensed under MIT license
9-
Version: 1.0.10
109
1110
Copyright (c) 2015, Majenko Technologies
1211
All rights reserved.
@@ -36,20 +35,23 @@
3635
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3736
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3837
38+
Version: 1.0.11
39+
3940
Version Modified By Date Comments
40-
------- ----------- ---------- -----------
41+
------- ----------- ---------- -----------
4142
1.0.0 K Hoang 12/02/2020 Initial coding for Arduino Mega, Teensy, etc
4243
1.0.1 K Hoang 17/02/2020 Add support to server's lambda function calls
43-
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, Mo Pro, AdaFruit, etc) boards
44+
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit, etc) boards
4445
1.0.3 K Hoang 03/03/2020 Add support to STM32 (STM32,F0,F1, F2, F3, F4, F7, etc) boards
4546
1.0.4 K Hoang 19/03/2020 Fix bug. Sync with ESP8266WebServer library of core v2.6.3
4647
1.0.5 K Hoang 17/04/2020 Add support to SAMD51 and SAM DUE boards
4748
1.0.6 K Hoang 11/06/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
48-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B30_ublox, etc.
49+
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B302_ublox, NINA_B112_ublox, etc.
4950
1.0.7 K Hoang 23/06/2020 Add support to ESP32-AT. Update deprecated ESP8266-AT commands. Restructure examples.
5051
1.0.8 K Hoang 01/07/2020 Fix bug. Add features to ESP32-AT.
5152
1.0.9 K Hoang 03/07/2020 Fix bug. Add functions. Restructure codes.
52-
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
53+
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
54+
1.0.11 K Hoang 25/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
5355
*****************************************************************************************************************************/
5456

5557
#include "defines.h"
@@ -144,7 +146,7 @@ void setup(void)
144146
Serial.begin(115200);
145147
while (!Serial);
146148

147-
Serial.println("\nStarting AdvancedServer on " + String(BOARD_NAME));
149+
Serial.println("\nStarting AdvancedWebServer on " + String(BOARD_NAME));
148150

149151
// initialize serial for ESP module
150152
EspSerial.begin(115200);

examples/AdvancedWebServer/defines.h

+75-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
/****************************************************************************************************************************
2-
defines.h for AdvancedWebServer.ino
2+
defines.h
33
For ESP8266/ESP32 AT-command running shields
44
55
ESP8266_AT_WebServer is a library for the ESP8266/ESP32 AT-command shields to run WebServer
66
Forked and modified from ESP8266 https://github.com/esp8266/Arduino/releases
77
Built by Khoi Hoang https://github.com/khoih-prog/ESP8266_AT_WebServer
88
Licensed under MIT license
9-
Version: 1.0.10
9+
Version: 1.0.11
1010
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
1313
1.0.0 K Hoang 12/02/2020 Initial coding for Arduino Mega, Teensy, etc
1414
1.0.1 K Hoang 17/02/2020 Add support to server's lambda function calls
15-
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, Mo Pro, AdaFruit, etc) boards
15+
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit, etc) boards
1616
1.0.3 K Hoang 03/03/2020 Add support to STM32 (STM32,F0,F1, F2, F3, F4, F7, etc) boards
1717
1.0.4 K Hoang 19/03/2020 Fix bug. Sync with ESP8266WebServer library of core v2.6.3
1818
1.0.5 K Hoang 17/04/2020 Add support to SAMD51 and SAM DUE boards
1919
1.0.6 K Hoang 11/06/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
20-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B30_ublox, etc.
20+
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B302_ublox, NINA_B112_ublox, etc.
2121
1.0.7 K Hoang 23/06/2020 Add support to ESP32-AT. Update deprecated ESP8266-AT commands. Restructure examples.
2222
1.0.8 K Hoang 01/07/2020 Fix bug. Add features to ESP32-AT.
2323
1.0.9 K Hoang 03/07/2020 Fix bug. Add functions. Restructure codes.
24-
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
24+
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
25+
1.0.11 K Hoang 25/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
2526
*****************************************************************************************************************************/
2627

2728
#ifndef defines_h
@@ -39,7 +40,7 @@
3940
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \
4041
|| defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \
4142
|| defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \
42-
|| defined(__SAMD51G19A__) || defined(__SAMD21G18A__) )
43+
|| defined(__SAMD51G19A__) || defined(__SAMD51P19A__) || defined(__SAMD21G18A__) )
4344
#if defined(ESP8266_AT_USE_SAMD)
4445
#undef ESP8266_AT_USE_SAMD
4546
#endif
@@ -62,15 +63,17 @@
6263
#define ESP8266_AT_USE_SAM_DUE true
6364
#endif
6465

65-
#if ( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) )
66+
#if ( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
67+
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
68+
defined(STM32WB) || defined(STM32MP1) )
6669
#if defined(ESP8266_AT_USE_STM32)
6770
#undef ESP8266_AT_USE_STM32
6871
#endif
6972
#define ESP8266_AT_USE_STM32 true
7073
#endif
7174

7275
#ifdef CORE_TEENSY
73-
// For Teensy 4.0
76+
// For Teensy 4.1/4.0
7477
#define EspSerial Serial2 //Serial2, Pin RX2 : 7, TX2 : 8
7578
#if defined(__IMXRT1062__)
7679
// For Teensy 4.1/4.0
@@ -160,6 +163,22 @@
160163
#define BOARD_TYPE "SAMD51 ADAFRUIT_MONSTER_M4SK_EXPRESS"
161164
#elif defined(ADAFRUIT_HALLOWING_M4_EXPRESS)
162165
#define BOARD_TYPE "SAMD51 ADAFRUIT_HALLOWING_M4_EXPRESS"
166+
#elif defined(SEEED_WIO_TERMINAL)
167+
#define BOARD_TYPE "SAMD SEEED_WIO_TERMINAL"
168+
#elif defined(SEEED_FEMTO_M0)
169+
#define BOARD_TYPE "SAMD SEEED_FEMTO_M0"
170+
#elif defined(SEEED_XIAO_M0)
171+
#define BOARD_TYPE "SAMD SEEED_XIAO_M0"
172+
#elif defined(Wio_Lite_MG126)
173+
#define BOARD_TYPE "SAMD SEEED Wio_Lite_MG126"
174+
#elif defined(WIO_GPS_BOARD)
175+
#define BOARD_TYPE "SAMD SEEED WIO_GPS_BOARD"
176+
#elif defined(SEEEDUINO_ZERO)
177+
#define BOARD_TYPE "SAMD SEEEDUINO_ZERO"
178+
#elif defined(SEEEDUINO_LORAWAN)
179+
#define BOARD_TYPE "SAMD SEEEDUINO_LORAWAN"
180+
#elif defined(SEEED_GROVE_UI_WIRELESS)
181+
#define BOARD_TYPE "SAMD SEEED_GROVE_UI_WIRELESS"
163182
#elif defined(__SAMD21E18A__)
164183
#define BOARD_TYPE "SAMD21E18A"
165184
#elif defined(__SAMD21G18A__)
@@ -220,25 +239,56 @@
220239
#define BOARD_TYPE "SAM DUE"
221240

222241
#elif defined(ESP8266_AT_USE_STM32)
223-
// For STM32
224-
#define EspSerial Serial1
242+
// For STM32
243+
#warning EspSerial using SERIAL_PORT_HARDWARE, can be Serial or Serial1. See your board variant.h
244+
#define EspSerial SERIAL_PORT_HARDWARE //Serial1
225245

226246
#if defined(STM32F0)
227-
#define BOARD_TYPE "STM32F0"
228-
#elif defined(STM32F1)
229-
#define BOARD_TYPE "STM32F1"
230-
#elif defined(STM32F2)
231-
#define BOARD_TYPE "STM32F2"
232-
#elif defined(STM32F3)
233-
#define BOARD_TYPE "STM32F3"
234-
#elif defined(STM32F4)
235-
#define BOARD_TYPE "STM32F4"
236-
#elif defined(STM32F7)
237-
#define BOARD_TYPE "STM32F7"
238-
#else
239-
#warning STM32 unknown board selected
240-
#define BOARD_TYPE "STM32 Unknown"
241-
#endif
247+
#warning STM32F0 board selected
248+
#define BOARD_TYPE "STM32F0"
249+
#elif defined(STM32F1)
250+
#warning STM32F1 board selected
251+
#define BOARD_TYPE "STM32F1"
252+
#elif defined(STM32F2)
253+
#warning STM32F2 board selected
254+
#define BOARD_TYPE "STM32F2"
255+
#elif defined(STM32F3)
256+
#warning STM32F3 board selected
257+
#define BOARD_TYPE "STM32F3"
258+
#elif defined(STM32F4)
259+
#warning STM32F4 board selected
260+
#define BOARD_TYPE "STM32F4"
261+
#elif defined(STM32F7)
262+
#warning STM32F7 board selected
263+
#define BOARD_TYPE "STM32F7"
264+
#elif defined(STM32L0)
265+
#warning STM32L0 board selected
266+
#define BOARD_TYPE "STM32L0"
267+
#elif defined(STM32L1)
268+
#warning STM32L1 board selected
269+
#define BOARD_TYPE "STM32L1"
270+
#elif defined(STM32L4)
271+
#warning STM32L4 board selected
272+
#define BOARD_TYPE "STM32L4"
273+
#elif defined(STM32H7)
274+
#warning STM32H7 board selected
275+
#define BOARD_TYPE "STM32H7"
276+
#elif defined(STM32G0)
277+
#warning STM32G0 board selected
278+
#define BOARD_TYPE "STM32G0"
279+
#elif defined(STM32G4)
280+
#warning STM32G4 board selected
281+
#define BOARD_TYPE "STM32G4"
282+
#elif defined(STM32WB)
283+
#warning STM32WB board selected
284+
#define BOARD_TYPE "STM32WB"
285+
#elif defined(STM32MP1)
286+
#warning STM32MP1 board selected
287+
#define BOARD_TYPE "STM32MP1"
288+
#else
289+
#warning STM32 unknown board selected
290+
#define BOARD_TYPE "STM32 Unknown"
291+
#endif
242292

243293
#else
244294
// For Mega

examples/ConnectWPA/ConnectWPA.ino

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,29 @@
66
Forked and modified from ESP8266 https://github.com/esp8266/Arduino/releases
77
Built by Khoi Hoang https://github.com/khoih-prog/ESP8266_AT_WebServer
88
Licensed under MIT license
9-
Version: 1.0.10
109
1110
This example connects to an encrypted WiFi network using an ESP8266 module.
1211
Then it prints the MAC address of the WiFi shield, the IP address obtained
1312
and other network details.
1413
For more details see: http://yaab-arduino.blogspot.com/p/wifiesp-example-connect.html
1514
15+
Version: 1.0.11
16+
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
1819
1.0.0 K Hoang 12/02/2020 Initial coding for Arduino Mega, Teensy, etc
1920
1.0.1 K Hoang 17/02/2020 Add support to server's lambda function calls
20-
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, Mo Pro, AdaFruit, etc) boards
21+
1.0.2 K Hoang 22/02/2020 Add support to SAMD (DUE, ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit, etc) boards
2122
1.0.3 K Hoang 03/03/2020 Add support to STM32 (STM32,F0,F1, F2, F3, F4, F7, etc) boards
2223
1.0.4 K Hoang 19/03/2020 Fix bug. Sync with ESP8266WebServer library of core v2.6.3
2324
1.0.5 K Hoang 17/04/2020 Add support to SAMD51 and SAM DUE boards
2425
1.0.6 K Hoang 11/06/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
25-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B30_ublox, etc.
26+
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B302_ublox, NINA_B112_ublox, etc.
2627
1.0.7 K Hoang 23/06/2020 Add support to ESP32-AT. Update deprecated ESP8266-AT commands. Restructure examples.
2728
1.0.8 K Hoang 01/07/2020 Fix bug. Add features to ESP32-AT.
2829
1.0.9 K Hoang 03/07/2020 Fix bug. Add functions. Restructure codes.
29-
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
30+
1.0.10 K Hoang 22/07/2020 Fix bug not closing client and releasing socket.
31+
1.0.11 K Hoang 25/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
3032
*****************************************************************************************************************************/
3133

3234
#include "defines.h"

0 commit comments

Comments
 (0)