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

Commit

Permalink
v1.1.0 to fix issue with slow browsers or network
Browse files Browse the repository at this point in the history
### Release v1.1.0

1. Fix issue with slow browsers or network. Check [Target stops responding after variable time when using Firefox on Windows 10 #3](#3)
  • Loading branch information
khoih-prog authored Sep 25, 2022
1 parent 9398ece commit 740a15b
Show file tree
Hide file tree
Showing 30 changed files with 306 additions and 55 deletions.
44 changes: 29 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP

1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
2. [`Earle Philhower's arduino-pico core v2.5.4+`](https://github.com/earlephilhower/arduino-pico) for **RASPBERRY_PI_PICO_W with CYW43439 WiFi**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
3. [`AsyncTCP_RP2040W library v1.0.0+`](https://github.com/khoih-prog/AsyncTCP_RP2040W) for RASPBERRY_PI_PICO_W with CYW43439 WiFi. [![GitHub release](https://img.shields.io/github/release/khoih-prog/AsyncTCP_RP2040W.svg)](https://github.com/khoih-prog/AsyncTCP_RP2040W/releases/latest). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/AsyncTCP_RP2040W.svg?)](https://www.ardu-badge.com/AsyncTCP_RP2040W)
3. [`AsyncTCP_RP2040W library v1.1.0+`](https://github.com/khoih-prog/AsyncTCP_RP2040W) for RASPBERRY_PI_PICO_W with CYW43439 WiFi. [![GitHub release](https://img.shields.io/github/release/khoih-prog/AsyncTCP_RP2040W.svg)](https://github.com/khoih-prog/AsyncTCP_RP2040W/releases/latest)

---

Expand Down Expand Up @@ -1451,8 +1451,8 @@ Following is the debug terminal when running example [Async_AdvancedWebServer](e

```
Start Async_AdvancedWebServer on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand All @@ -1475,8 +1475,8 @@ Following is debug terminal output when running example [WebClient](examples/Web

```
Start WebClient on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand Down Expand Up @@ -1553,8 +1553,8 @@ Following is debug terminal output when running example [MQTTClient_Auth](exampl

```
Start MQTTClient_Auth on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand All @@ -1575,8 +1575,8 @@ Following is debug terminal output when running example [MQTTClient_Basic](examp

```
Start MQTTClient_Basic on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand All @@ -1597,8 +1597,8 @@ Following is debug terminal output when running example [MQTT_ThingStream](examp

```
Start MQTT_ThingStream on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand All @@ -1625,8 +1625,8 @@ Following is the debug terminal when running example [Async_AdvancedWebServer_Co

```
Start Async_AdvancedWebServer_Country on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
AsyncTCP_RP2040W v1.0.0
AsyncWebServer_RP2040W v1.0.3
AsyncTCP_RP2040W v1.1.0
AsyncWebServer_RP2040W v1.1.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.180
Expand All @@ -1639,7 +1639,18 @@ HTTP EthernetWebServer is @ IP : 192.168.2.180
<img src="https://github.com/khoih-prog/AsyncWebServer_RP2040W/blob/main/pics/Async_AdvancedWebServer_Country.png">
</p>

---
##### Chrome, Vivaldi and Firefox running simultaneously

<p align="center">
<img src="https://github.com/khoih-prog/AsyncWebServer_RP2040W/blob/main/pics/Async_AdvancedWebServer_Country_Multi.png">
</p>

##### Only Firefox running

<p align="center">
<img src="https://github.com/khoih-prog/AsyncWebServer_RP2040W/blob/main/pics/Async_AdvancedWebServer_Country_Firefox.png">
</p>


---
---
Expand Down Expand Up @@ -1681,14 +1692,17 @@ Submit issues to: [AsyncWebServer_RP2040W issues](https://github.com/khoih-prog/
2. Add Table of Contents
3. Modify examples to display `country-code`
4. Add tempo method to modify `arduino-pico` core to change `country-code`
5. Fix issue with slow browsers or network. Check [Target stops responding after variable time when using Firefox on Windows 10 #3](https://github.com/khoih-prog/AsyncWebServer_RP2040W/issues/3)

---
---

### Contributions and Thanks

1. Based on and modified from [Hristo Gochkov's ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer). Many thanks to [Hristo Gochkov](https://github.com/me-no-dev) for great [ESPAsyncWebServer Library](https://github.com/me-no-dev/ESPAsyncWebServer)
2. Thanks to [revell1](https://github.com/revell1) to report the bug in [LED state appears to be reversed. #2](https://github.com/khoih-prog/AsyncWebServer_RP2040W/issues/2), leading to v1.0.2
2. Thanks to [revell1](https://github.com/revell1) to
- report the bug in [LED state appears to be reversed. #2](https://github.com/khoih-prog/AsyncWebServer_RP2040W/issues/2), leading to v1.0.2
- request enhancement in [Target stops responding after variable time when using Firefox on Windows 10 #3](https://github.com/khoih-prog/AsyncWebServer_RP2040W/issues/3), leading to v1.1.0

<table>
<tr>
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Release v1.1.0](#Release-v110)
* [Release v1.0.3](#Release-v103)
* [Release v1.0.2](#Release-v102)
* [Release v1.0.1](#Release-v101)
Expand All @@ -21,6 +22,11 @@

## Changelog

### Release v1.1.0

1. Fix issue with slow browsers or network. Check [Target stops responding after variable time when using Firefox on Windows 10 #3](https://github.com/khoih-prog/AsyncWebServer_RP2040W/issues/3)


### Release v1.0.3

1. Modify examples to display `country-code`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void drawGraph(AsyncWebServerRequest *request)
{
String out;

out.reserve(3000);
out.reserve(4000);
char temp[70];

digitalWrite(LED_BUILTIN, LED_ON);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
#error For RASPBERRY_PI_PICO_W only
#endif

#define _RP2040W_AWS_LOGLEVEL_ 1
#define _ASYNCTCP_RP2040W_LOGLEVEL_ 4
#define _RP2040W_AWS_LOGLEVEL_ 3

///////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -131,7 +132,7 @@ void drawGraph(AsyncWebServerRequest *request)
{
String out;

out.reserve(3000);
out.reserve(4000);
char temp[70];

digitalWrite(LED_BUILTIN, LED_ON);
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AsyncWebServer_RP2040W",
"version": "1.0.3",
"version": "1.1.0",
"keywords": "http, async, websocket, webserver, async-webserver, async-tcp, async-udp, async-websocket, async-http, ssl, tls, rp2040, rp2040w, raspberry-pi-pico-w, cyw43439, wifi",
"description": "Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core. This library, which is relied on AsyncTCP_RP2040W, is part of a series of advanced Async libraries for RP2040W, such as AsyncTCP_RP2040W, AsyncUDP_RP2040W, AsyncWebServer_RP2040W, AsyncHTTPRequest_RP2040W, AsyncHTTPSRequest_RP2040W, etc. Now can display programmed WiFi country-code",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AsyncWebServer_RP2040W
version=1.0.3
version=1.1.0
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <[email protected]>
sentence=Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core.
Expand Down
Binary file added pics/Async_AdvancedWebServer_Country_Firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/Async_AdvancedWebServer_Country_Multi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ upload_speed = 921600
;monitor_port = COM11

; Checks for the compatibility with frameworks and dev/platforms
; Adjust as necessary
lib_compat_mode = strict
lib_ldf_mode = chain+
;lib_ldf_mode = deep+
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncEventSource_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#if !defined(_RP2040W_AWS_LOGLEVEL_)
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncEventSource_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncJson_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/
/*
Async Response to use with ArduinoJson and AsyncWebServer
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebAuthentication_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#if !defined(_RP2040W_AWS_LOGLEVEL_)
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebAuthentication_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebHandlerImpl_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebHandlers_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Licensed under GPLv3 license
Version: 1.0.3
Version: 1.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json`
1.0.2 K Hoang 15/08/2022 Fix LED bug in examples
1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core
1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network
*****************************************************************************************************************************/

#if !defined(_RP2040W_AWS_LOGLEVEL_)
Expand Down
Loading

0 comments on commit 740a15b

Please sign in to comment.