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

Commit 08cb978

Browse files
authored
v1.7.3 to Auto detect ESP32 core
### Releases v1.7.3 1. Auto detect ESP32 core for LittleFS for WT32_ETH01 2. Fix bug in examples.
1 parent 3ef78e1 commit 08cb978

File tree

27 files changed

+398
-221
lines changed

27 files changed

+398
-221
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.16) or Platform.io version
18-
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP8266 core v3.0.2, ArduinoCore-mbed v2.5.2, etc.)
18+
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP8266 core v3.0.2, ArduinoCore-mbed v2.6.1, etc.)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -28,9 +28,9 @@ Please ensure to specify the following:
2828
```
2929
Arduino IDE version: 1.8.16
3030
RASPBERRY_PI_PICO board
31-
ArduinoCore-mbed v2.5.2
31+
ArduinoCore-mbed v2.6.1
3232
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
33+
Linux xy-Inspiron-3593 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
3434
3535
Context:
3636
I encountered an endless loop while trying to connect to Local WiFi.

README.md

Lines changed: 182 additions & 177 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.7.3](#releases-v173)
1516
* [Releases v1.7.2](#releases-v172)
1617
* [Releases v1.7.1](#releases-v171)
1718
* [Releases v1.7.0](#releases-v170)
@@ -28,6 +29,11 @@
2829

2930
## Changelog
3031

32+
### Releases v1.7.3
33+
34+
1. Auto detect ESP32 core for LittleFS for WT32_ETH01
35+
2. Fix bug in examples.
36+
3137
### Releases v1.7.2
3238

3339
1. Fix crashing issue for new cleared flash. Check [RP2040_RTC_Time crashes Pico, does not work #3](https://github.com/khoih-prog/RP2040_RTC/issues/3)

examples/Ethernet/TZ_NTP_Clock_Ethernet/TZ_NTP_Clock_Ethernet.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ void setup()
449449

450450
#endif
451451

452+
myTZ->writeRules();
453+
452454
Udp.begin(localPort);
453455
}
454456

examples/Ethernet/TZ_NTP_Clock_Ethernet/defines.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// Debug Level from 0 to 4
2222
#define _ETHERNET_WEBSERVER_LOGLEVEL_ 3
23+
#define _NTP_LOGLEVEL_ 0
2324
#define _TZ_LOGLEVEL_ 1
2425

2526
#if ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \

examples/Ethernet/TZ_NTP_Clock_STM32_Ethernet/TZ_NTP_Clock_STM32_Ethernet.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ void setup()
270270

271271
#endif
272272

273+
myTZ.writeRules();
274+
273275
Udp.begin(localPort);
274276
}
275277

examples/Ethernet/TZ_NTP_Clock_STM32_Ethernet/defines.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
// Debug Level from 0 to 4
2929
#define _ETHERNET_WEBSERVER_LOGLEVEL_ 2
30+
#define _NTP_LOGLEVEL_ 0
31+
#define _TZ_LOGLEVEL_ 3
3032

3133
// If USE_BUILTIN_ETHERNET == false and USE_UIP_ETHERNET == false =>
3234
// either use W5x00 with EthernetXYZ library

examples/RTL8720DN/TZ_NTP_Clock_RTL8720DN/TZ_NTP_Clock_RTL8720DN.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ void setup()
267267

268268
#endif
269269

270+
myTZ->writeRules();
271+
270272
Udp.begin(localPort);
271273

272274
Serial.print(F("Listening on port "));

examples/RTL8720DN/TZ_NTP_Clock_RTL8720DN/defines.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// Debug Level from 0 to 4
2222
#define _WIFI_LOGLEVEL_ 3
2323
#define _NTP_LOGLEVEL_ 0
24+
#define _TZ_LOGLEVEL_ 3
2425

2526
#include <WiFiWebServer_RTL8720.h>
2627

examples/WT32_ETH01/TZ_NTP_Clock_WT32_ETH01/TZ_NTP_Clock_WT32_ETH01.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ void setup()
196196
Serial.println(WEBSERVER_WT32_ETH01_VERSION);
197197
Serial.println(TIMEZONE_GENERIC_VERSION);
198198

199+
// To be called before ETH.begin()
200+
WT32_ETH01_onEvent();
201+
199202
//bool begin(uint8_t phy_addr=ETH_PHY_ADDR, int power=ETH_PHY_POWER, int mdc=ETH_PHY_MDC, int mdio=ETH_PHY_MDIO,
200203
// eth_phy_type_t type=ETH_PHY_TYPE, eth_clock_mode_t clk_mode=ETH_CLK_MODE);
201204
//ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_TYPE, ETH_CLK_MODE);
@@ -205,8 +208,6 @@ void setup()
205208
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
206209
ETH.config(myIP, myGW, mySN, myDNS);
207210

208-
WT32_ETH01_onEvent();
209-
210211
WT32_ETH01_waitForConnect();
211212

212213
Serial.print(F("TZ_NTP_Clock_WT32_ETH01 started @ IP address: "));
@@ -249,6 +250,8 @@ void setup()
249250

250251
#endif
251252

253+
myTZ->writeRules();
254+
252255
Udp.begin(localPort);
253256

254257
Serial.print(F("Listening on port "));

0 commit comments

Comments
 (0)