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

Commit 3f2b60a

Browse files
authored
v3.5.2 to auto-detect ESP32 core version.
### Release v1.5.2 1. Auto detect ESP32 core version. 2. Fix bug in examples for WT32_ETH01 3. Update `Packages' Patches`
1 parent cc4dc3c commit 3f2b60a

19 files changed

+253
-85
lines changed

CONTRIBUTING.md

+3-3
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 a crash while trying to use the Timer Interrupt.

README.md

+71-55
Large diffs are not rendered by default.

changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Release v1.5.2](#release-v152)
1516
* [Release v1.5.1](#release-v151)
1617
* [Major Release v1.5.0](#major-release-v150)
1718
* [Major Release v1.4.0](#major-release-v140)
@@ -29,6 +30,12 @@
2930

3031
## Changelog
3132

33+
### Release v1.5.2
34+
35+
1. Auto detect ESP32 core version.
36+
2. Fix bug in examples for WT32_ETH01
37+
3. Update `Packages' Patches`
38+
3239
### Release v1.5.1
3340

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

library.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MySQL_MariaDB_Generic",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"keywords": "Communication, Database, Storage, MySQL, MariaDB, wt32-eth01, Teensy, SAMD, nRF52, W5x00, Ethernet, wifi, wifinina, lan8720, rp2040, nano-33-iot, nano-rp2040-connect, QNEthernet, native-ethernet, Portenta-H7, SAM DUE, ENC28J60, rpi-pico, Arduino, AVR",
55
"description": "Connects to MySQL or MariaDB using ESP8266/ESP32, WT32_ETH01 (ESP32 + LAN8720A), nRF52, SAMD21/SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, Mega, RP2040-based boards, Portenta_H7, etc. with W5x00, ENC28J60 Ethernet, Teensy 4.1 NativeEthernet/QNEthernet, WiFiNINA modules/shields or Portenta_H7 WiFi/Ethernet. W5x00 can use Ethernet, EthernetLarge, Ethernet2 or Ethernet3 library. ENC28J60 can use either EthernetENC or UIPEthernet Library. Now accepting server's hostname, besides IPAddress",
66
"authors": [
@@ -34,13 +34,13 @@
3434
{
3535
"owner": "khoih-prog",
3636
"name": "WiFiNINA_Generic",
37-
"version": "^1.8.13",
37+
"version": "^1.8.14-1",
3838
"platforms": ["*"]
3939
},
4040
{
4141
"owner": "khoih-prog",
4242
"name": "WebServer_WT32_ETH01",
43-
"version": ">=1.2.0",
43+
"version": ">=1.4.1",
4444
"platforms": ["*"]
4545
},
4646
{
@@ -108,7 +108,9 @@
108108
"version": "https://github.com/ssilverman/QNEthernet"
109109
}
110110
],
111+
"license": "MIT",
111112
"frameworks": "*",
112113
"platforms": "*",
113-
"examples": "examples/*/*/*.ino"
114+
"examples": "examples/*/*/*.ino",
115+
"headers": ["MySQL_Generic.h"]
114116
}

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MySQL_MariaDB_Generic
2-
version=1.5.1
2+
version=1.5.2
33
author=Dr. Charles Bell <chuck.bell@oracle.com>, Khoi Hoang <khoih.prog@gmail.com>
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
sentence=Connects to MySQL or MariaDB using ESP8266/ESP32, WT32_ETH01 (ESP32 + LAN8720A), nRF52, SAMD21/SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, Mega, RP2040-based boards, Portenta_H7, etc. with W5x00, ENC28J60 Ethernet, Teensy 4.1 NativeEthernet/QNEthernet, WiFiNINA modules/shields or Portenta_H7 WiFi/Ethernet. W5x00 can use Ethernet, EthernetLarge, Ethernet2 or Ethernet3 library. ENC28J60 can use either EthernetENC or UIPEthernet Library.

platformio/platformio.ini

+138-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,25 @@
1414
; ESP8266
1515
; ESP32
1616
; SAMD
17+
; DUE
1718
; NRF52
1819
; STM32
20+
; AVR
21+
; TEENSY
22+
; pico
23+
;portenta_h7_m7
24+
;portenta_h7_m4
25+
1926
; ============================================================
2027
;default_envs = ESP8266
2128
;default_envs = ESP32
2229
default_envs = SAMD
30+
;default_envs = DUE
2331
;default_envs = NRF52
2432
;default_envs = STM32
33+
;default_envs = AVR
34+
;default_envs = TEENSY
35+
;default_envs = pico
2536
;default_envs = portenta_h7_m7
2637
;default_envs = portenta_h7_m4
2738

@@ -76,15 +87,19 @@ build_flags =
7687
; comment the folowing line to enable WiFi debugging
7788
; -D NDEBUG
7889

79-
[env:portenta_h7_m7]
80-
platform = ststm32
81-
board = portenta_h7_m7
90+
[env:DUE]
91+
platform = atmelsam
8292
framework = arduino
93+
board = due
8394

84-
[env:portenta_h7_m4]
85-
platform = ststm32
86-
board = portenta_h7_m4
87-
framework = arduino
95+
; change microcontroller
96+
board_build.mcu = at91sam3x8e
97+
98+
; change MCU frequency
99+
board_build.f_cpu = 84000000L
100+
101+
; ============================================================
102+
; ============================================================
88103

89104
[env:ESP8266]
90105
platform = espressif8266
@@ -131,9 +146,12 @@ board = nodemcuv2
131146
;board = xinabox_cw01
132147
;board = esp32doit-devkit-v1
133148

149+
; ============================================================
150+
; ============================================================
151+
134152
[env:ESP32]
135153
platform = espressif32
136-
framework = arduino, espidf
154+
framework = arduino
137155
; ============================================================
138156
; Board configuration
139157
; choose your board by uncommenting one of the following lines
@@ -172,6 +190,9 @@ board = esp32doit-devkit-v1
172190
;board = iotbusproteus
173191
;board = nina_w10
174192

193+
; ============================================================
194+
; ============================================================
195+
175196
[env:SAMD]
176197
platform = atmelsam
177198
framework = arduino
@@ -245,6 +266,8 @@ board = adafruit_itsybitsy_m4
245266
;board = rolawan
246267
;board = seeed_grove_ui_wireless
247268

269+
; ============================================================
270+
; ============================================================
248271

249272
[env:NRF52]
250273
platform = nordicnrf52
@@ -266,6 +289,9 @@ board = feather52840
266289
;board = ninab302
267290
;board = ninab112
268291

292+
; ============================================================
293+
; ============================================================
294+
269295
[env:STM32]
270296
platform = ststm32
271297
framework = arduino
@@ -377,3 +403,107 @@ framework = arduino
377403
; Board configuration Many more Boards to be filled
378404
; ============================================================
379405

406+
; ============================================================
407+
; ============================================================
408+
409+
[env:AVR]
410+
platform = atmelavr
411+
framework = arduino
412+
413+
; ============================================================
414+
; Board configuration AVR
415+
; ============================================================
416+
417+
;board = yun
418+
;board = uno
419+
;board = diecimila
420+
;board = nano
421+
;board = nanoatmega328
422+
;board = mega
423+
board = megaatmega2560
424+
;board = megaADK
425+
;board = leonardo
426+
;board = leonardoeth
427+
;board = micro
428+
;board = esplora
429+
;board = mini
430+
;board = ethernet
431+
;board = fio
432+
;board = bt
433+
;board = LilyPadUSB
434+
;board = lilypad
435+
;board = pro
436+
;board = atmegang
437+
;board = robotControl
438+
;board = robotMotor
439+
;board = gemma
440+
;board = circuitplay32u4cat
441+
;board = yunmini
442+
;board = chiwawa
443+
;board = one
444+
;board = unowifi
445+
446+
; ============================================================
447+
; ============================================================
448+
449+
[env:TEENSY]
450+
platform = teensy
451+
framework = arduino
452+
453+
; ============================================================
454+
; Choose your board by uncommenting one of the following lines
455+
; ============================================================
456+
457+
; ============================================================
458+
; Board configuration TEENSY
459+
; ============================================================
460+
461+
;board = teensy2
462+
;board = teensy2pp
463+
;board = teensy30
464+
;board = teensy31
465+
;board = teensylc
466+
;board = teensy35
467+
;board = teensy36
468+
;board = teensy40
469+
;board = teensy41
470+
471+
; ============================================================
472+
; Choose your board by uncommenting one of the following lines
473+
; ============================================================
474+
475+
; ============================================================
476+
; Board configuration raspberrypi pico
477+
; ============================================================
478+
479+
[env:pico]
480+
; ============================================================
481+
; Just a sample
482+
; You have to research and fix if there is issue
483+
; ============================================================
484+
platform = raspberrypi
485+
board = pico
486+
framework = arduino
487+
upload_protocol = picotool
488+
489+
; ============================================================
490+
; ============================================================
491+
492+
; ============================================================
493+
; Board configuration portenta_h7_m7
494+
; ============================================================
495+
496+
[env:portenta_h7_m7]
497+
platform = ststm32
498+
board = portenta_h7_m7
499+
framework = arduino
500+
501+
; ============================================================
502+
; Board configuration portenta_h7_m4
503+
; ============================================================
504+
505+
[env:portenta_h7_m4]
506+
platform = ststm32
507+
board = portenta_h7_m4
508+
framework = arduino
509+

src/MySQL_Generic.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1313
Licensed under MIT license
14-
Version: 1.5.1
14+
Version: 1.5.2
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -27,6 +27,7 @@
2727
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
2828
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
2929
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
30+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3031
**********************************************************************************************************************************/
3132

3233
#ifndef MYSQL_GENERIC_H

src/MySQL_Generic_Connection.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1313
Licensed under MIT license
14-
Version: 1.5.1
14+
Version: 1.5.2
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -27,6 +27,7 @@
2727
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
2828
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
2929
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
30+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3031
**********************************************************************************************************************************/
3132

3233
/*********************************************************************************************************************************

src/MySQL_Generic_Connection_Impl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1313
Licensed under MIT license
14-
Version: 1.5.1
14+
Version: 1.5.2
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -27,6 +27,7 @@
2727
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
2828
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
2929
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
30+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3031
**********************************************************************************************************************************/
3132

3233
/*********************************************************************************************************************************

src/MySQL_Generic_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1313
Licensed under MIT license
14-
Version: 1.5.1
14+
Version: 1.5.2
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -27,6 +27,7 @@
2727
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
2828
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
2929
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
30+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3031
**********************************************************************************************************************************/
3132

3233
/*********************************************************************************************************************************

src/MySQL_Generic_Encrypt_Sha1.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1818
Licensed under MIT license
19-
Version: 1.5.1
19+
Version: 1.5.2
2020
2121
Version Modified By Date Comments
2222
------- ----------- ---------- -----------
@@ -32,6 +32,7 @@
3232
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
3333
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
3434
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
35+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3536
**********************************************************************************************************************************/
3637

3738
#ifndef MYSQL_GENERIC_ENCRYPT_SHA1_H

src/MySQL_Generic_Encrypt_Sha1_Impl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic
1818
Licensed under MIT license
19-
Version: 1.5.1
19+
Version: 1.5.2
2020
2121
Version Modified By Date Comments
2222
------- ----------- ---------- -----------
@@ -32,6 +32,7 @@
3232
1.4.0 K Hoang 05/09/2021 Add support to Teensy 4.1 using QNEthernet
3333
1.5.0 K Hoang 17/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
3434
1.5.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
35+
1.5.2 K Hoang 01/12/2021 Auto detect ESP32 core for LittleFS. Fix bug in examples for WT32_ETH01
3536
**********************************************************************************************************************************/
3637

3738
#ifndef MYSQL_GENERIC_ENCRYPT_SHA1_IMPL_H

0 commit comments

Comments
 (0)