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

Commit f934df6

Browse files
authored
v1.3.0 to fix issue with slow browsers or network
### Releases v1.3.0 1. Fix issue with slow browsers or network. Check [Target stops responding after variable time when using Firefox on Windows 10 #3](khoih-prog/AsyncWebServer_RP2040W#3)
1 parent e049af5 commit f934df6

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

examples/Ethernet/Async_AdvancedWebServer/Async_AdvancedWebServer.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
#error For Portenta_H7 only
4343
#endif
4444

45-
#define _PORTENTA_H7_AWS_LOGLEVEL_ 1
45+
#define _PORTENTA_H7_ATCP_LOGLEVEL_ 1
46+
#define _PORTENTA_H7_AWS_LOGLEVEL_ 1
4647

4748
#define USE_ETHERNET_PORTENTA_H7 true
4849

@@ -149,7 +150,7 @@ void drawGraph(AsyncWebServerRequest *request)
149150
{
150151
String out;
151152

152-
out.reserve(3000);
153+
out.reserve(4000);
153154
char temp[70];
154155

155156
out += "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"310\" height=\"150\">\n";
@@ -218,8 +219,7 @@ void setup()
218219
Serial.println(Ethernet.localIP());
219220

220221
///////////////////////////////////
221-
222-
222+
223223
server.on("/", HTTP_GET, [](AsyncWebServerRequest * request)
224224
{
225225
handleRoot(request);

examples/Ethernet/Async_HelloServer/Async_HelloServer.ino

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#error For Portenta_H7 only
1515
#endif
1616

17-
#define _PORTENTA_H7_AWS_LOGLEVEL_ 1
17+
#define _PORTENTA_H7_AWS_LOGLEVEL_ 4
1818

1919
#define USE_ETHERNET_PORTENTA_H7 true
2020

@@ -118,8 +118,10 @@ void setup()
118118

119119
// Use Static IP
120120
//Ethernet.begin(mac[index], ip);
121+
//Ethernet.begin(ip);
121122
// Use DHCP dynamic IP and random mac
122-
Ethernet.begin(mac[index]);
123+
//Ethernet.begin(mac[index]);
124+
Ethernet.begin();
123125

124126
if (Ethernet.hardwareStatus() == EthernetNoHardware)
125127
{
@@ -195,5 +197,5 @@ void check_status()
195197

196198
void loop()
197199
{
198-
check_status();
200+
//check_status();
199201
}

examples/WiFi/Async_AdvancedWebServer/Async_AdvancedWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void drawGraph(AsyncWebServerRequest *request)
124124
{
125125
String out;
126126

127-
out.reserve(3000);
127+
out.reserve(4000);
128128
char temp[70];
129129

130130
out += "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"310\" height=\"150\">\n";

0 commit comments

Comments
 (0)