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

Commit 94bbe56

Browse files
authored
v1.5.0 for WizNet WizFi360
### Releases v1.5.0 1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core 2. Modify examples to Enable `IP MUX`
1 parent 63d2a1b commit 94bbe56

File tree

21 files changed

+3064
-1810
lines changed

21 files changed

+3064
-1810
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +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/ESP_AT_Lib/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, STM32 core v2.3.0, 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.4, 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
30-
Arduino STM32 Core v2.3.0
35+
RASPBERRY_PI_PICO board
36+
ArduinoCore-mbed v3.5.4
3137
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 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
3339
3440
Context:
3541
I encountered a crash while using this library

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
## Table of Contents
1818

1919
* [Changelog](#changelog)
20+
* [Releases v1.5.0](#releases-v150)
2021
* [Releases v1.4.1](#releases-v141)
2122
* [Releases v1.4.0](#releases-v140)
2223
* [Releases v1.3.0](#releases-v130)
@@ -29,6 +30,11 @@
2930

3031
### Changelog
3132

33+
### Releases v1.5.0
34+
35+
1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core
36+
2. Modify examples to Enable `IP MUX`
37+
3238
### Releases v1.4.1
3339

3440
1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix

examples/ConnectWiFi/ConnectWiFi.ino

Lines changed: 6 additions & 253 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/****************************************************************************************************************************
22
HTTPGET.ino
3-
For ESP8266/ESP32-AT-command running shields
3+
For WizFi360/ESP8266/ESP32-AT-command running shields
44
5-
ESP_AT_Lib is a wrapper library for the ESP8266/ESP32 AT-command shields
5+
ESP_AT_Lib is a wrapper library for the WizFi360/ESP8266/ESP32 AT-command shields
66
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_Lib
@@ -28,267 +28,20 @@
2828
THE SOFTWARE.
2929
*****************************************************************************************************************************/
3030

31-
/* Comment this out to disable prints and save space */
32-
#define ESP_AT_DEBUG_OUTPUT Serial
33-
34-
#define _ESP_AT_LOGLEVEL_ 4
35-
36-
// Uncomment to use ESP32-AT commands
37-
//#define USE_ESP32_AT true
38-
39-
#if (defined(NRF52840_FEATHER) || defined(NRF52832_FEATHER) || defined(NRF52_SERIES) || defined(ARDUINO_NRF52_ADAFRUIT) || \
40-
defined(NRF52840_FEATHER_SENSE) || defined(NRF52840_ITSYBITSY) || defined(NRF52840_CIRCUITPLAY) || \
41-
defined(NRF52840_CLUE) || defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || \
42-
defined(MDBT50Q_RX) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) )
43-
#if defined(ESP_AT_USE_NRF528XX)
44-
#undef ESP_AT_USE_NRF528XX
45-
#endif
46-
#define ESP_AT_USE_NRF528XX true
47-
#endif
48-
49-
#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \
50-
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) \
51-
|| defined(ARDUINO_SAMD_MKRWAN1310) || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) \
52-
|| defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) \
53-
|| defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) || defined(__SAMD51G19A__) )
54-
#if defined(ESP_AT_USE_SAMD)
55-
#undef ESP_AT_USE_SAMD
56-
#endif
57-
#define ESP_AT_USE_SAMD true
58-
#endif
59-
60-
#if ( defined(ARDUINO_AVR_ADK) || defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) )
61-
#if defined(ESP_AT_USE_AVR)
62-
#undef ESP_AT_USE_AVR
63-
#endif
64-
#define ESP_AT_USE_AVR true
65-
#endif
66-
67-
#if ( defined(ARDUINO_SAM_DUE) || defined(__SAM3X8E__) )
68-
#if defined(ESP_AT_USE_SAM_DUE)
69-
#undef ESP_AT_USE_SAM_DUE
70-
#endif
71-
#define ESP_AT_USE_SAM_DUE true
72-
#endif
73-
74-
#if ( defined(CORE_TEENSY) && !( defined(__MKL26Z64__) || defined(__AVR_AT90USB1286__) || defined(__AVR_ATmega32U4__) ) )
75-
#if defined(ESP_AT_USE_TEENSY)
76-
#undef ESP_AT_USE_TEENSY
77-
#endif
78-
#define ESP_AT_USE_TEENSY true
79-
#endif
80-
81-
#if ( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) )
82-
#if defined(ESP_AT_USE_STM32)
83-
#undef ESP_AT_USE_STM32
84-
#endif
85-
#define ESP_AT_USE_STM32 true
86-
#endif
87-
88-
#if (ESP_AT_USE_NRF528XX)
89-
90-
#if defined(NRF52840_FEATHER)
91-
#define BOARD_TYPE "NRF52840_FEATHER_EXPRESS"
92-
#elif defined(NRF52832_FEATHER)
93-
#define BOARD_TYPE "NRF52832_FEATHER"
94-
#elif defined(NRF52840_FEATHER_SENSE)
95-
#define BOARD_TYPE "NRF52840_FEATHER_SENSE"
96-
#elif defined(NRF52840_ITSYBITSY)
97-
#define BOARD_TYPE "NRF52840_ITSYBITSY_EXPRESS"
98-
#elif defined(NRF52840_CIRCUITPLAY)
99-
#define BOARD_TYPE "NRF52840_CIRCUIT_PLAYGROUND"
100-
#elif defined(NRF52840_CLUE)
101-
#define BOARD_TYPE "NRF52840_CLUE"
102-
#elif defined(NRF52840_METRO)
103-
#define BOARD_TYPE "NRF52840_METRO_EXPRESS"
104-
#elif defined(NRF52840_PCA10056)
105-
#define BOARD_TYPE "NORDIC_NRF52840DK"
106-
#elif defined(NINA_B302_ublox)
107-
#define BOARD_TYPE "NINA_B302_ublox"
108-
#elif defined(NINA_B112_ublox)
109-
#define BOARD_TYPE "NINA_B112_ublox"
110-
#elif defined(PARTICLE_XENON)
111-
#define BOARD_TYPE "PARTICLE_XENON"
112-
#elif defined(MDBT50Q_RX)
113-
#define BOARD_TYPE "RAYTAC_MDBT50Q_RX"
114-
#elif defined(ARDUINO_NRF52_ADAFRUIT)
115-
#define BOARD_TYPE "ARDUINO_NRF52_ADAFRUIT"
116-
#else
117-
#define BOARD_TYPE "nRF52 Unknown"
118-
#endif
119-
120-
#define EspSerial Serial1
121-
122-
#elif defined(ESP_AT_USE_SAMD)
123-
#if defined(ARDUINO_SAMD_ZERO)
124-
#define BOARD_TYPE "SAMD Zero"
125-
#elif defined(ARDUINO_SAMD_MKR1000)
126-
#define BOARD_TYPE "SAMD MKR1000"
127-
#elif defined(ARDUINO_SAMD_MKRWIFI1010)
128-
#define BOARD_TYPE "SAMD MKRWIFI1010"
129-
#elif defined(ARDUINO_SAMD_NANO_33_IOT)
130-
#define BOARD_TYPE "SAMD NANO_33_IOT"
131-
#elif defined(ARDUINO_SAMD_MKRFox1200)
132-
#define BOARD_TYPE "SAMD MKRFox1200"
133-
#elif ( defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) )
134-
#define BOARD_TYPE "SAMD MKRWAN13X0"
135-
#elif defined(ARDUINO_SAMD_MKRGSM1400)
136-
#define BOARD_TYPE "SAMD MKRGSM1400"
137-
#elif defined(ARDUINO_SAMD_MKRNB1500)
138-
#define BOARD_TYPE "SAMD MKRNB1500"
139-
#elif defined(ARDUINO_SAMD_MKRVIDOR4000)
140-
#define BOARD_TYPE "SAMD MKRVIDOR4000"
141-
#elif defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS)
142-
#define BOARD_TYPE "SAMD ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS"
143-
#elif defined(__SAMD21G18A__)
144-
#define BOARD_TYPE "SAMD21G18A"
145-
#elif defined(__SAMD51G19A__)
146-
#define BOARD_TYPE "SAMD51G19"
147-
#elif defined(__SAMD51J19A__)
148-
#define BOARD_TYPE "SAMD51J19A"
149-
#elif defined(__SAMD51J20A__)
150-
#define BOARD_TYPE "SAMD51J20A"
151-
#elif defined(__SAMD51__)
152-
#define BOARD_TYPE "SAMD51"
153-
#else
154-
#define BOARD_TYPE "SAMD Unknown"
155-
#endif
156-
157-
#define EspSerial Serial1
158-
159-
#elif defined(ESP_AT_USE_SAM_DUE)
160-
#if ( defined(ARDUINO_SAM_DUE) || (__SAM3X8E__) )
161-
#define BOARD_TYPE "SAM DUE"
162-
#else
163-
#define BOARD_TYPE "SAM Unknown"
164-
#endif
165-
166-
#define EspSerial Serial1
167-
168-
#elif ( defined(CORE_TEENSY) )
169-
// For Teensy 4.0
170-
#if defined(__IMXRT1062__)
171-
// For Teensy 4.1/4.0
172-
#if defined(ARDUINO_TEENSY41)
173-
#define BOARD_TYPE "TEENSY 4.1"
174-
// Use true for NativeEthernet Library, false if using other Ethernet libraries
175-
#define USE_NATIVE_ETHERNET true
176-
#elif defined(ARDUINO_TEENSY40)
177-
#define BOARD_TYPE "TEENSY 4.0"
178-
#else
179-
#define BOARD_TYPE "TEENSY 4.x"
180-
#endif
181-
#elif defined(__MK66FX1M0__)
182-
#define BOARD_TYPE "Teensy 3.6"
183-
#elif defined(__MK64FX512__)
184-
#define BOARD_TYPE "Teensy 3.5"
185-
#elif defined(__MK20DX256__)
186-
#define BOARD_TYPE "Teensy 3.2/3.1"
187-
#elif defined(__MK20DX128__)
188-
#define BOARD_TYPE "Teensy 3.0"
189-
#elif ( defined(__MKL26Z64__) || defined(__AVR_AT90USB1286__) || defined(__AVR_ATmega32U4__) )
190-
#error "Teensy LC, 2.0++ and 2.0 not supported"
191-
#else
192-
#define BOARD_TYPE "Teensy Unknown"
193-
#endif
194-
195-
#define EspSerial Serial1
196-
197-
#elif ESP_AT_USE_STM32
198-
199-
#if defined(STM32F0)
200-
#define BOARD_TYPE "STM32F0"
201-
#error Board STM32F0 not supported
202-
#elif defined(STM32F1)
203-
#define BOARD_TYPE "STM32F1"
204-
#elif defined(STM32F2)
205-
#define BOARD_TYPE "STM32F2"
206-
#elif defined(STM32F3)
207-
#define BOARD_TYPE "STM32F3"
208-
#elif defined(STM32F4)
209-
#define BOARD_TYPE "STM32F4"
210-
#elif defined(STM32F7)
211-
#define BOARD_TYPE "STM32F7"
212-
#else
213-
#warning STM32 unknown board selected
214-
#define BOARD_TYPE "STM32 Unknown"
215-
#endif
216-
217-
// For STM32, you have to declare and enable coreresponding Serial Port somewhere else before using it
218-
#define EspSerial Serial1
219-
220-
#elif defined(BOARD_SIPEED_MAIX_DUINO)
221-
222-
#warning SIPEED_MAIX_DUINO board selected
223-
#define BOARD_TYPE "BOARD_SIPEED_MAIX_DUINO"
224-
225-
#define EspSerial Serial1
226-
227-
#elif ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || \
228-
defined(ARDUINO_GENERIC_RP2040) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) )
229-
230-
#warning RASPBERRY_PI_PICO board selected
231-
232-
#if defined(ARDUINO_ARCH_MBED)
233-
234-
#if defined(BOARD_NAME)
235-
#undef BOARD_NAME
236-
#endif
237-
238-
#if defined(ARDUINO_RASPBERRY_PI_PICO)
239-
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
240-
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
241-
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
242-
#elif defined(ARDUINO_GENERIC_RP2040)
243-
#define BOARD_TYPE "MBED GENERIC_RP2040"
244-
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
245-
#define BOARD_NAME "MBED NANO_RP2040_CONNECT"
246-
#else
247-
#define BOARD_TYPE "MBED Unknown RP2040"
248-
#endif
249-
#else
250-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
251-
#endif
252-
253-
#define EspSerial Serial1
254-
255-
#elif (ESP_AT_USE_AVR)
256-
257-
#if defined(ARDUINO_AVR_MEGA2560)
258-
#define BOARD_TYPE "AVR Mega2560"
259-
#elif defined(ARDUINO_AVR_MEGA)
260-
#define BOARD_TYPE "AVR Mega"
261-
#else
262-
#define BOARD_TYPE "AVR ADK"
263-
#endif
264-
265-
// For Mega, use Serial1 or Serial3
266-
#define EspSerial Serial3
267-
268-
#else
269-
#error Unknown or unsupported Board. Please check your Tools->Board setting.
270-
271-
#endif //ESP_AT_USE_NRF528XX
272-
273-
#ifndef BOARD_NAME
274-
#define BOARD_NAME BOARD_TYPE
275-
#endif
31+
#include "defines.h"
27632

27733
#include "ESP_AT_Lib.h"
27834

279-
#define SSID "SSID"
280-
#define PASSWORD "password"
281-
28235
// Your board <-> ESP_AT baud rate:
28336
#define ESP_AT_BAUD 115200
28437

28538
ESP8266 wifi(&EspSerial);
28639

287-
void setup(void)
40+
void setup()
28841
{
28942
Serial.begin(115200);
29043

291-
while (!Serial);
44+
while (!Serial && millis() < 5000);
29245

29346
delay(1000);
29447

@@ -330,6 +83,6 @@ void setup(void)
33083
Serial.println("Done");
33184
}
33285

333-
void loop(void)
86+
void loop()
33487
{
33588
}

0 commit comments

Comments
 (0)