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

Commit e87dc06

Browse files
authored
v1.4.1 to fix authenticate issue
### Releases v1.4.1 1. Fix authenticate issue caused by libb64
1 parent a8db88a commit e87dc06

27 files changed

+137
-88
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1414

1515
Please ensure to specify the following:
1616

17-
* Arduino IDE version (e.g. 1.8.16) or Platform.io version
18-
* `STM32` Core Version (e.g. STM32 core v2.1.0)
17+
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18+
* `STM32` Core Version (e.g. STM32 core v2.2.0)
1919
* Board type and relevant info
2020
* Contextual information (e.g. what you were trying to achieve)
2121
* Simplest possible steps to reproduce
@@ -27,11 +27,11 @@ Please ensure to specify the following:
2727
### Example
2828

2929
```
30-
Arduino IDE version: 1.8.16
31-
STM32 Core Version 2.1.0
30+
Arduino IDE version: 1.8.19
31+
STM32 Core Version 2.2.0
3232
Nucleo-144 STM32F7 NUCLEO_F767ZI
3333
OS: Ubuntu 20.04 LTS
34-
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
34+
Linux xy-Inspiron-3593 5.4.0-94-generic #106-Ubuntu SMP Thu Jan 6 23:58:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3535
3636
Context:
3737
I encountered an endless loop while trying to connect to Local WiFi.

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
182182
## Prerequisites
183183

184184
1. [`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software)
185-
2. [`Arduino Core for STM32 v2.1.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest)
185+
2. [`Arduino Core for STM32 v2.2.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest)
186186
3. [`STM32Ethernet library v1.2.0+`](https://github.com/stm32duino/STM32Ethernet) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [![GitHub release](https://img.shields.io/github/release/stm32duino/STM32Ethernet.svg)](https://github.com/stm32duino/STM32Ethernet/releases/latest)
187187
4. [`LwIP library v2.1.2+`](https://github.com/stm32duino/LwIP) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [![GitHub release](https://img.shields.io/github/release/stm32duino/LwIP.svg)](https://github.com/stm32duino/LwIP/releases/latest)
188188
5. [`STM32AsyncTCP library v1.0.1+`](https://github.com/khoih-prog/STM32AsyncTCP) for built-in Ethernet on (Nucleo-144, Discovery). To install manually for Arduino IDE.
@@ -222,12 +222,12 @@ To use LAN8720 on some STM32 boards
222222
- **Discovery (DISCO_F746NG)**
223223
- **STM32F4 boards (BLACK_F407VE, BLACK_F407VG, BLACK_F407ZE, BLACK_F407ZG, BLACK_F407VE_Mini, DIYMORE_F407VGT, FK407M1)**
224224

225-
you have to copy the files [stm32f4xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.1.0/system/STM32F4xx) and [stm32f7xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.1.0/system/STM32F7xx) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system) to overwrite the old files.
225+
you have to copy the files [stm32f4xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.2.0/system/STM32F4xx) and [stm32f7xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.2.0/system/STM32F7xx) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.2.0/system) to overwrite the old files.
226226

227-
Supposing the STM32 stm32 core version is 2.1.0. These files must be copied into the directory:
227+
Supposing the STM32 stm32 core version is 2.2.0. These files must be copied into the directory:
228228

229-
- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h` for STM32F4.
230-
- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7.
229+
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h` for STM32F4.
230+
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7.
231231

232232
Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz,
233233
theses files must be copied into the corresponding directory:
@@ -238,12 +238,12 @@ theses files must be copied into the corresponding directory:
238238

239239
#### 2. For STM32 boards to use Serial1
240240

241-
**To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards**, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/2.1.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.1.0). You have to modify the files corresponding to your boards, this is just an illustration how to do.
241+
**To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards**, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/2.2.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.2.0). You have to modify the files corresponding to your boards, this is just an illustration how to do.
242242

243-
Supposing the STM32 stm32 core version is 2.1.0. These files must be copied into the directory:
243+
Supposing the STM32 stm32 core version is 2.2.0. These files must be copied into the directory:
244244

245-
- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/NUCLEO_F767ZI/variant.h` for Nucleo-144 NUCLEO_F767ZI.
246-
- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h` for Nucleo-64 NUCLEO_L053R8.
245+
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/NUCLEO_F767ZI/variant.h` for Nucleo-144 NUCLEO_F767ZI.
246+
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h` for Nucleo-64 NUCLEO_L053R8.
247247

248248
Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz,
249249
theses files must be copied into the corresponding directory:
@@ -1777,7 +1777,7 @@ Following are debug terminal output and screen shots when running example [Async
17771777
17781778
```
17791779
Starting AsyncMultiWebServer_STM32 on NUCLEO_F767ZI with LAN8742A built-in Ethernet
1780-
AsyncWebServer_STM32 v1.4.0
1780+
AsyncWebServer_STM32 v1.4.1
17811781

17821782
Connected to network. IP = 192.168.2.141
17831783
Initialize multiServer OK, serverIndex = 0, port = 8080
@@ -1810,7 +1810,7 @@ Following is debug terminal output when running example [WebClient](examples/Web
18101810
18111811
```
18121812
Starting WebClient on NUCLEO_F767ZI with LAN8742A built-in Ethernet
1813-
AsyncWebServer_STM32 v1.4.0
1813+
AsyncWebServer_STM32 v1.4.1
18141814
You're connected to the network, IP = 192.168.2.71
18151815

18161816
Starting connection to server...
@@ -1879,7 +1879,7 @@ Following is debug terminal output when running example [MQTTClient_Auth](exampl
18791879
18801880
```
18811881
Starting MQTTClient_Auth on NUCLEO_F767ZI with LAN8742A built-in Ethernet
1882-
AsyncWebServer_STM32 v1.4.0
1882+
AsyncWebServer_STM32 v1.4.1
18831883

18841884
Connected to network. IP = 192.168.2.71
18851885
Attempting MQTT connection to broker.emqx.io...connected
@@ -1897,7 +1897,7 @@ Following is debug terminal output when running example [MQTTClient_Basic](examp
18971897
18981898
```
18991899
Starting MQTTClient_Basic on NUCLEO_F767ZI with LAN8742A built-in Ethernet
1900-
AsyncWebServer_STM32 v1.4.0
1900+
AsyncWebServer_STM32 v1.4.1
19011901

19021902
Connected to network. IP = 192.168.2.71
19031903
Attempting MQTT connection to broker.shiftr.io...connected
@@ -1923,7 +1923,7 @@ Following is debug terminal output when running example [MQTT_ThingStream](examp
19231923
19241924
```
19251925
Starting MQTT_ThingStream on NUCLEO_F767ZI with LAN8742A built-in Ethernet
1926-
AsyncWebServer_STM32 v1.4.0
1926+
AsyncWebServer_STM32 v1.4.1
19271927

19281928
Connected to network. IP = 192.168.2.71
19291929
***************************************
@@ -1953,7 +1953,7 @@ Following is debug terminal output when running example [MQTTClient_Auth_LAN8720
19531953
19541954
```
19551955
Start MQTTClient_Auth_LAN8720 on BLACK_F407VE with LAN8720 Ethernet
1956-
AsyncWebServer_STM32 v1.4.0
1956+
AsyncWebServer_STM32 v1.4.1
19571957

19581958
Connected to network. IP = 192.168.2.150
19591959
Attempting MQTT connection to broker.emqx.io...connected
@@ -1992,7 +1992,7 @@ Following are debug terminal output and screen shots when running example [Async
19921992
19931993
```
19941994
Start AsyncMultiWebServer_STM32_LAN8720 on BLACK_F407VE with LAN8720 Ethernet
1995-
AsyncWebServer_STM32 v1.4.0
1995+
AsyncWebServer_STM32 v1.4.1
19961996

19971997
Connected to network. IP = 192.168.2.150
19981998
Initialize multiServer OK, serverIndex = 0, port = 8080

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
* [Table of contents](#table-of-contents)
1515
* [Changelog](#changelog)
16+
* [Releases v1.4.1](#releases-v141)
1617
* [Releases v1.4.0](#releases-v140)
1718
* [Releases v1.3.1](#releases-v131)
1819
* [Releases v1.3.0](#releases-v130)
@@ -26,6 +27,10 @@
2627

2728
## Changelog
2829

30+
### Releases v1.4.1
31+
32+
1. Fix authenticate issue caused by libb64
33+
2934
### Releases v1.4.0
3035

3136
1. Fix base64 encoding of websocket client key and add WebServer progmem support. Check PR [Fix base64 encoding of websocket client key and progmem support for webserver #7](https://github.com/khoih-prog/AsyncWebServer_STM32/pull/7)

keywords.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,3 +516,11 @@ b64_encode KEYWORD2
516516
#######################################
517517

518518
# LITERAL1
519+
520+
ASYNC_WEBSERVER_STM32_VERSION LITERAL1
521+
522+
ASYNC_WEBSERVER_STM32_VERSION_MAJOR LITERAL1
523+
ASYNC_WEBSERVER_STM32_VERSION_MINOR LITERAL1
524+
ASYNC_WEBSERVER_STM32_VERSION_PATCH LITERAL1
525+
ASYNC_WEBSERVER_STM32_VERSION_INT LITERAL1
526+

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncWebServer_STM32",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description":"Asynchronous HTTP and WebSocket Server Library for STM32F/L/H/G/WB/MP1 using LAN8720 or built-in LAN8742A Ethernet",
55
"keywords":"http, async, websocket, webserver, stm32, stm32f, stm32l, stm32h, stm32g, stm32wb, stm32mp1, ethernet, lan8742a, lan8720, bluepill, blackpill, f407ve, f767zi, nucleo, nucleo-144",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncWebServer_STM32
2-
version=1.4.0
2+
version=1.4.1
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT

src/AsyncEventSource_STM32.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.4.0
12+
Version: 1.4.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -20,7 +20,8 @@
2020
1.2.6 K Hoang 22/03/2021 Fix dependency on STM32AsyncTCP Library
2121
1.3.0 K Hoang 14/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2222
1.3.1 K Hoang 09/10/2021 Update `platform.ini` and `library.json`
23-
1.4.0 K Hoang 14/12/2021 Fix base64 encoding of websocket client key and add WebServer progmem support *****************************************************************************************************************************/
23+
1.4.0 K Hoang 14/12/2021 Fix base64 encoding of websocket client key and add WebServer progmem support
24+
1.4.1 K Hoang 12/01/2022 Fix authenticate issue caused by libb64 *****************************************************************************************************************************/
2425

2526
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 1
2627

src/AsyncEventSource_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.4.0
12+
Version: 1.4.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.3.0 K Hoang 14/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2222
1.3.1 K Hoang 09/10/2021 Update `platform.ini` and `library.json`
2323
1.4.0 K Hoang 14/12/2021 Fix base64 encoding of websocket client key and add WebServer progmem support
24+
1.4.1 K Hoang 12/01/2022 Fix authenticate issue caused by libb64
2425
*****************************************************************************************************************************/
2526

2627
#pragma once

src/AsyncJson_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.4.0
12+
Version: 1.4.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.3.0 K Hoang 14/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2222
1.3.1 K Hoang 09/10/2021 Update `platform.ini` and `library.json`
2323
1.4.0 K Hoang 14/12/2021 Fix base64 encoding of websocket client key and add WebServer progmem support
24+
1.4.1 K Hoang 12/01/2022 Fix authenticate issue caused by libb64
2425
*****************************************************************************************************************************/
2526
/*
2627
Async Response to use with ArduinoJson and AsyncWebServer

src/AsyncWebAuthentication_STM32.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.4.0
12+
Version: 1.4.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.3.0 K Hoang 14/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2222
1.3.1 K Hoang 09/10/2021 Update `platform.ini` and `library.json`
2323
1.4.0 K Hoang 14/12/2021 Fix base64 encoding of websocket client key and add WebServer progmem support
24+
1.4.1 K Hoang 12/01/2022 Fix authenticate issue caused by libb64
2425
*****************************************************************************************************************************/
2526

2627
#define _ASYNCWEBSERVER_STM32_LOGLEVEL_ 1

0 commit comments

Comments
 (0)