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

Commit dd9c4d4

Browse files
authored
v1.0.2 to fix LED bug in examples
### Release v1.0.2 1. Fix LED bug in examples
1 parent e9d8d64 commit dd9c4d4

30 files changed

+76
-342
lines changed

CONTRIBUTING.md

+4-4
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.19) or Platform.io version
18-
* `RP2040` Core Version (e.g. RP2040 core v2.4.0)
18+
* `RP2040` Core Version (e.g. RP2040 core v2.5.2)
1919
* `RP2040W` Board type (e.g. RASPBERRY_PI_PICO_W)
2020
* Contextual information (e.g. what you were trying to achieve)
2121
* Simplest possible steps to reproduce
@@ -28,13 +28,13 @@ Please ensure to specify the following:
2828

2929
```
3030
Arduino IDE version: 1.8.19
31-
RP2040 core v2.4.0
31+
RP2040 core v2.5.2
3232
RASPBERRY_PI_PICO_W Module
3333
OS: Ubuntu 20.04 LTS
34-
Linux xy-Inspiron-3593 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
34+
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3535
3636
Context:
37-
I encountered a crash while using Ethernet Async_AdvancedWebServer.
37+
I encountered a crash while using Async_AdvancedWebServer
3838
3939
Steps to reproduce:
4040
1. ...

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
149149
## Prerequisites
150150

151151
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)
152-
2. [`Earle Philhower's arduino-pico core v2.4.0+`](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)
152+
2. [`Earle Philhower's arduino-pico core v2.5.2+`](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)
153153
3. [`AsyncTCP_RP2040W library v1.0.0+`](https://github.com/khoih-prog/AsyncTCP_RP2040W) for RASPBERRY_PI_PICO_W with CYW43439 WiFi. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/AsyncTCP_RP2040W.svg?)](https://www.ardu-badge.com/AsyncTCP_RP2040W)
154154

155155
---
@@ -1108,8 +1108,8 @@ int status = WL_IDLE_STATUS;
11081108

11091109
AsyncWebServer server(80);
11101110

1111-
#define LED_OFF HIGH
1112-
#define LED_ON LOW
1111+
#define LED_OFF LOW
1112+
#define LED_ON HIGH
11131113

11141114
#define BUFFER_SIZE 64
11151115
char temp[BUFFER_SIZE];
@@ -1449,7 +1449,7 @@ Following is the debug terminal when running example [Async_AdvancedWebServer](e
14491449
```
14501450
Start Async_AdvancedWebServer on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
14511451
AsyncTCP_RP2040W v1.0.0
1452-
AsyncWebServer_RP2040W v1.0.1
1452+
AsyncWebServer_RP2040W v1.0.2
14531453
Connecting to SSID: HueNet1
14541454
SSID: HueNet1
14551455
Local IP Address: 192.168.2.180
@@ -1472,7 +1472,7 @@ Following is debug terminal output when running example [WebClient](examples/Web
14721472
```
14731473
Start WebClient on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
14741474
AsyncTCP_RP2040W v1.0.0
1475-
AsyncWebServer_RP2040W v1.0.1
1475+
AsyncWebServer_RP2040W v1.0.2
14761476
Connecting to SSID: HueNet1
14771477
SSID: HueNet1
14781478
Local IP Address: 192.168.2.180
@@ -1549,7 +1549,7 @@ Following is debug terminal output when running example [MQTTClient_Auth](exampl
15491549
```
15501550
Start MQTTClient_Auth on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
15511551
AsyncTCP_RP2040W v1.0.0
1552-
AsyncWebServer_RP2040W v1.0.1
1552+
AsyncWebServer_RP2040W v1.0.2
15531553
Connecting to SSID: HueNet1
15541554
SSID: HueNet1
15551555
Local IP Address: 192.168.2.180
@@ -1570,7 +1570,7 @@ Following is debug terminal output when running example [MQTTClient_Basic](examp
15701570
```
15711571
Start MQTTClient_Basic on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
15721572
AsyncTCP_RP2040W v1.0.0
1573-
AsyncWebServer_RP2040W v1.0.1
1573+
AsyncWebServer_RP2040W v1.0.2
15741574
Connecting to SSID: HueNet1
15751575
SSID: HueNet1
15761576
Local IP Address: 192.168.2.180
@@ -1591,7 +1591,7 @@ Following is debug terminal output when running example [MQTT_ThingStream](examp
15911591
```
15921592
Start MQTT_ThingStream on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
15931593
AsyncTCP_RP2040W v1.0.0
1594-
AsyncWebServer_RP2040W v1.0.1
1594+
AsyncWebServer_RP2040W v1.0.2
15951595
Connecting to SSID: HueNet1
15961596
SSID: HueNet1
15971597
Local IP Address: 192.168.2.180
@@ -1653,10 +1653,12 @@ Submit issues to: [AsyncWebServer_RP2040W issues](https://github.com/khoih-prog/
16531653
### Contributions and Thanks
16541654

16551655
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)
1656+
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
16561657

16571658
<table>
16581659
<tr>
16591660
<td align="center"><a href="https://github.com/me-no-dev"><img src="https://github.com/me-no-dev.png" width="100px;" alt="me-no-dev"/><br /><sub><b>⭐️⭐️ Hristo Gochkov</b></sub></a><br /></td>
1661+
<td align="center"><a href="https://github.com/revell1"><img src="https://github.com/revell1.png" width="100px;" alt="revell1"/><br /><sub><b>revell1</b></sub></a><br /></td>
16601662
</tr>
16611663
</table>
16621664

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
## Table of Contents
1212

1313
* [Changelog](#changelog)
14+
* [Release v1.0.2](#Release-v102)
1415
* [Release v1.0.1](#Release-v101)
1516
* [Initial Release v1.0.0](#Initial-Release-v100)
1617

@@ -19,6 +20,10 @@
1920

2021
## Changelog
2122

23+
### Release v1.0.2
24+
25+
1. Fix LED bug in examples
26+
2227
### Release v1.0.1
2328

2429
1. Fix bug in examples, `library.json`

examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino

+6-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ AsyncWebServer server(80);
5555

5656
int reqCount = 0; // number of requests received
5757

58-
#define LED_OFF HIGH
59-
#define LED_ON LOW
60-
58+
#define LED_OFF LOW
59+
#define LED_ON HIGH
6160

6261
#define BUFFER_SIZE 512
6362
char temp[BUFFER_SIZE];
@@ -122,6 +121,8 @@ void drawGraph(AsyncWebServerRequest *request)
122121
out.reserve(3000);
123122
char temp[70];
124123

124+
digitalWrite(LED_BUILTIN, LED_ON);
125+
125126
out += "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"310\" height=\"150\">\n";
126127
out += "<rect width=\"310\" height=\"150\" fill=\"rgb(250, 230, 210)\" stroke-width=\"2\" stroke=\"rgb(0, 0, 0)\" />\n";
127128
out += "<g stroke=\"blue\">\n";
@@ -137,6 +138,8 @@ void drawGraph(AsyncWebServerRequest *request)
137138
out += "</g>\n</svg>\n";
138139

139140
request->send(200, "image/svg+xml", out);
141+
142+
digitalWrite(LED_BUILTIN, LED_OFF);
140143
}
141144

142145
void printWifiStatus()

examples/Async_HelloServer/Async_HelloServer.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ int status = WL_IDLE_STATUS;
2323

2424
AsyncWebServer server(80);
2525

26-
#define LED_OFF HIGH
27-
#define LED_ON LOW
26+
#define LED_OFF LOW
27+
#define LED_ON HIGH
2828

2929
#define BUFFER_SIZE 64
3030
char temp[BUFFER_SIZE];

examples/Async_HelloServer2/Async_HelloServer2.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ int status = WL_IDLE_STATUS;
2727

2828
AsyncWebServer server(80);
2929

30-
#define LED_OFF HIGH
31-
#define LED_ON LOW
30+
#define LED_OFF LOW
31+
#define LED_ON HIGH
3232

3333
#define BUFFER_SIZE 64
3434
char temp[BUFFER_SIZE];

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "AsyncWebServer_RP2040W",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"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",
55
"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.",
66
"authors":

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncWebServer_RP2040W
2-
version=1.0.1
2+
version=1.0.2
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
sentence=Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core.

0 commit comments

Comments
 (0)