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

Commit 8709538

Browse files
authored
v1.7.0 for WizNet WizFi360
### Releases v1.7.0 1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core
1 parent f34f6e0 commit 8709538

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

+3945
-3179
lines changed

Diff for: CONTRIBUTING.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,32 @@ However, before reporting a bug please check through the following:
1010

1111
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/ESP8266_AT_WebServer/issues/new).
1212

13+
---
14+
1315
### How to submit a bug report
1416

1517
Please ensure to specify the following:
1618

1719
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.5, ESP8266 core v3.0.2, ArduinoCore-mbed v3.4.1, etc.)
20+
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.6, ESP8266 core v3.1.1, ArduinoCore-mbed v3.5.1, etc.)
1921
* Contextual information (e.g. what you were trying to achieve)
2022
* Simplest possible steps to reproduce
2123
* Anything that might be relevant in your opinion, such as:
2224
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
2325
* Network configuration
2426

27+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
28+
29+
---
2530

2631
### Example
2732

2833
```
2934
Arduino IDE version: 1.8.19
3035
RASPBERRY_PI_PICO board
31-
ArduinoCore-mbed v3.4.1
36+
ArduinoCore-mbed v3.5.1
3237
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
38+
Linux xy-Inspiron-3593 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3439
3540
Context:
3641
I encountered a crash while trying to use the library

Diff for: README.md

+98-56
Large diffs are not rendered by default.

Diff for: changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
## Table of Contents
1717

1818
* [Changelog](#changelog)
19+
* [Releases v1.7.0](#releases-v170)
1920
* [Releases v1.6.0](#releases-v160)
2021
* [Releases v1.5.4](#releases-v154)
2122
* [Releases v1.5.3](#releases-v153)
@@ -46,6 +47,10 @@
4647

4748
## Changelog
4849

50+
### Releases v1.7.0
51+
52+
1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core
53+
4954
### Releases v1.6.0
5055

5156
1. Fix severe limitation to permit sending larger data than 2K buffer

Diff for: examples/ATWebServer_BigData/defines.h

+69-32
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@
2020
#define DEBUG_ESP8266_AT_WEBSERVER_PORT Serial
2121

2222
// Debug Level from 0 to 4
23-
#define _ESP_AT_LOGLEVEL_ 3
23+
#define _ESP_AT_LOGLEVEL_ 1
2424

25-
// Uncomment to use ESP32-AT commands
26-
//#define USE_ESP32_AT true
25+
#define USING_WIZFI360 true
26+
27+
#if (USING_WIZFI360) || defined(ARDUINO_WIZNET_WIZFI360_EVB_PICO)
28+
#define USE_ESP32_AT true
29+
#else
30+
// Uncomment to use ESP32-AT commands
31+
//#define USE_ESP32_AT true
32+
#endif
2733

2834
#if USE_ESP32_AT
2935
#warning Using ESP32-AT WiFi and ESP8266_AT_WebServer Library
@@ -34,23 +40,34 @@
3440
#endif
3541

3642
#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \
37-
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \
38-
|| defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \
39-
|| defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \
40-
|| defined(__SAMD51G19A__) || defined(__SAMD51P19A__) || defined(__SAMD21G18A__) )
43+
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \
44+
|| defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \
45+
|| defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \
46+
|| defined(__SAMD51G19A__) || defined(__SAMD51P19A__) || defined(__SAMD21G18A__) )
47+
48+
#define MULTIPLY_FACTOR 2
49+
4150
#if defined(ESP8266_AT_USE_SAMD)
4251
#undef ESP8266_AT_USE_SAMD
4352
#endif
4453
#define ESP8266_AT_USE_SAMD true
54+
4555
#endif
4656

47-
#if ( defined(NRF52840_FEATHER) || defined(NRF52832_FEATHER) || defined(NRF52_SERIES) || defined(ARDUINO_NRF52_ADAFRUIT) || \
48-
defined(NRF52840_FEATHER_SENSE) || defined(NRF52840_ITSYBITSY) || defined(NRF52840_CIRCUITPLAY) || defined(NRF52840_CLUE) || \
49-
defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) )
57+
#if (defined(NRF52840_FEATHER) || defined(NRF52832_FEATHER) || defined(NRF52_SERIES) || defined(ARDUINO_NRF52_ADAFRUIT) || \
58+
defined(NRF52840_FEATHER_SENSE) || defined(NRF52840_ITSYBITSY) || defined(NRF52840_CIRCUITPLAY) || \
59+
defined(NRF52840_CLUE) || defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || \
60+
defined(NRF52840_LED_GLASSES) || defined(MDBT50Q_RX) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) || \
61+
defined(ARDUINO_Seeed_XIAO_nRF52840) || defined(ARDUINO_Seeed_XIAO_nRF52840_Sense) || \
62+
defined(ARDUINO_SEEED_XIAO_NRF52840) || defined(ARDUINO_SEEED_XIAO_NRF52840_SENSE) )
63+
64+
#define MULTIPLY_FACTOR 4
65+
5066
#if defined(ESP8266_AT_USE_NRF528XX)
5167
#undef ESP8266_AT_USE_NRF528XX
5268
#endif
5369
#define ESP8266_AT_USE_NRF528XX true
70+
5471
#endif
5572

5673
#if ( defined(ARDUINO_SAM_DUE) || defined(__SAM3X8E__) )
@@ -85,6 +102,8 @@
85102

86103
#if defined(__IMXRT1062__)
87104
// For Teensy 4.1/4.0
105+
#define MULTIPLY_FACTOR 6
106+
88107
#if defined(ARDUINO_TEENSY41)
89108
#define BOARD_TYPE "TEENSY 4.1"
90109
// Use true for NativeEthernet Library, false if using other Ethernet libraries
@@ -338,34 +357,41 @@
338357

339358
#warning RASPBERRY_PI_PICO board selected
340359

360+
#define MULTIPLY_FACTOR 6
361+
341362
#if defined(ARDUINO_ARCH_MBED)
342363

343-
#warning Using ARDUINO_ARCH_MBED
364+
#warning Using ARDUINO_ARCH_MBED
365+
366+
#if ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || \
367+
defined(ARDUINO_GENERIC_RP2040) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) )
368+
// Only undef known BOARD_NAME to use better one
369+
#undef BOARD_NAME
370+
#endif
371+
372+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
373+
#define BOARD_NAME "MBED RASPBERRY_PI_PICO"
374+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
375+
#define BOARD_NAME "MBED ADAFRUIT_FEATHER_RP2040"
376+
#elif defined(ARDUINO_GENERIC_RP2040)
377+
#define BOARD_NAME "MBED GENERIC_RP2040"
378+
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
379+
#define BOARD_NAME "MBED NANO_RP2040_CONNECT"
380+
#else
381+
// Use default BOARD_NAME if exists
382+
#if !defined(BOARD_NAME)
383+
#define BOARD_NAME "MBED Unknown RP2040"
384+
#endif
385+
#endif
344386

345-
#if ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || \
346-
defined(ARDUINO_GENERIC_RP2040) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) )
347-
// Only undef known BOARD_NAME to use better one
348-
#undef BOARD_NAME
349387
#endif
350-
351-
#if defined(ARDUINO_RASPBERRY_PI_PICO)
352-
#define BOARD_NAME "MBED RASPBERRY_PI_PICO"
353-
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
354-
#define BOARD_NAME "MBED ADAFRUIT_FEATHER_RP2040"
355-
#elif defined(ARDUINO_GENERIC_RP2040)
356-
#define BOARD_NAME "MBED GENERIC_RP2040"
357-
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
358-
#define BOARD_NAME "MBED NANO_RP2040_CONNECT"
388+
389+
#if defined(ARDUINO_WIZNET_WIZFI360_EVB_PICO)
390+
#warning WIZNET_WIZFI360_EVB_PICO
391+
#define EspSerial Serial2
359392
#else
360-
// Use default BOARD_NAME if exists
361-
#if !defined(BOARD_NAME)
362-
#define BOARD_NAME "MBED Unknown RP2040"
363-
#endif
364-
#endif
365-
393+
#define EspSerial Serial1
366394
#endif
367-
368-
#define EspSerial Serial1
369395

370396
#elif (ESP_AT_USE_AVR)
371397

@@ -388,6 +414,17 @@
388414
#define BOARD_NAME BOARD_TYPE
389415
#endif
390416

417+
////////////////////////////////////////////
418+
419+
#if !defined(MULTIPLY_FACTOR)
420+
#define MULTIPLY_FACTOR 1
421+
#elif (MULTIPLY_FACTOR > 6)
422+
#undef MULTIPLY_FACTOR
423+
#define MULTIPLY_FACTOR 6
424+
#endif
425+
426+
////////////////////////////////////////////
427+
391428
#include <ESP8266_AT_WebServer.h>
392429

393430
char ssid[] = "YOUR_SSID"; // your network SSID (name)

Diff for: examples/AdvancedWebServer/AdvancedWebServer.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ int reqCount = 0; // number of requests received
6565
#define WEBSERVER_PORT 80
6666

6767
ESP8266_AT_WebServer server(WEBSERVER_PORT);
68+
//WiFiServer server(WEBSERVER_PORT);
6869

6970
const int led = 13;
7071

@@ -259,7 +260,8 @@ void setup()
259260

260261
server.onNotFound(handleNotFound);
261262
server.begin();
262-
Serial.print(F("HTTP server started @ "));
263+
264+
Serial.print(F("HTTP server started @ "));
263265
Serial.print(WiFi.localIP());
264266
Serial.print(F(", Port = "));
265267
Serial.println(WEBSERVER_PORT);

Diff for: examples/AdvancedWebServer/defines.h

+35-24
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@
2222
// Debug Level from 0 to 4
2323
#define _ESP_AT_LOGLEVEL_ 1
2424

25-
// Uncomment to use ESP32-AT commands
26-
//#define USE_ESP32_AT true
25+
#define USING_WIZFI360 true
26+
27+
#if (USING_WIZFI360) || defined(ARDUINO_WIZNET_WIZFI360_EVB_PICO)
28+
#define USE_ESP32_AT true
29+
#else
30+
// Uncomment to use ESP32-AT commands
31+
//#define USE_ESP32_AT true
32+
#endif
2733

2834
#if USE_ESP32_AT
2935
#warning Using ESP32-AT WiFi and ESP8266_AT_WebServer Library
@@ -355,32 +361,37 @@
355361

356362
#if defined(ARDUINO_ARCH_MBED)
357363

358-
#warning Using ARDUINO_ARCH_MBED
364+
#warning Using ARDUINO_ARCH_MBED
365+
366+
#if ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || \
367+
defined(ARDUINO_GENERIC_RP2040) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) )
368+
// Only undef known BOARD_NAME to use better one
369+
#undef BOARD_NAME
370+
#endif
371+
372+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
373+
#define BOARD_NAME "MBED RASPBERRY_PI_PICO"
374+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
375+
#define BOARD_NAME "MBED ADAFRUIT_FEATHER_RP2040"
376+
#elif defined(ARDUINO_GENERIC_RP2040)
377+
#define BOARD_NAME "MBED GENERIC_RP2040"
378+
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
379+
#define BOARD_NAME "MBED NANO_RP2040_CONNECT"
380+
#else
381+
// Use default BOARD_NAME if exists
382+
#if !defined(BOARD_NAME)
383+
#define BOARD_NAME "MBED Unknown RP2040"
384+
#endif
385+
#endif
359386

360-
#if ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || \
361-
defined(ARDUINO_GENERIC_RP2040) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) )
362-
// Only undef known BOARD_NAME to use better one
363-
#undef BOARD_NAME
364387
#endif
365-
366-
#if defined(ARDUINO_RASPBERRY_PI_PICO)
367-
#define BOARD_NAME "MBED RASPBERRY_PI_PICO"
368-
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
369-
#define BOARD_NAME "MBED ADAFRUIT_FEATHER_RP2040"
370-
#elif defined(ARDUINO_GENERIC_RP2040)
371-
#define BOARD_NAME "MBED GENERIC_RP2040"
372-
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
373-
#define BOARD_NAME "MBED NANO_RP2040_CONNECT"
388+
389+
#if defined(ARDUINO_WIZNET_WIZFI360_EVB_PICO)
390+
#warning WIZNET_WIZFI360_EVB_PICO
391+
#define EspSerial Serial2
374392
#else
375-
// Use default BOARD_NAME if exists
376-
#if !defined(BOARD_NAME)
377-
#define BOARD_NAME "MBED Unknown RP2040"
378-
#endif
379-
#endif
380-
393+
#define EspSerial Serial1
381394
#endif
382-
383-
#define EspSerial Serial1
384395

385396
#elif (ESP_AT_USE_AVR)
386397

0 commit comments

Comments
 (0)