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 and support using CString to save heap to send very large data
GNU Lesser General Public License v3.0
23
stars
6
forks
source link
Page fails to load when exceeding 2373 bytes of text/html #7
Arduino IDE 2.0.2 (have also tried 1.8.19)
RP2040 2.3.3
Raspberry Pi Pico W
When using the Async_WebsocketsServer_xTreme example code unchanged all is as expected, however, if you add text to increase the size of the web page beyond 2373 characters the page will not load. I changed the text as below which works:
<body>
<h1>Pico W AsyncSocketServerB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h2>ADC: <span style="color:blue" id="POTvalue">0</span> </h2>
<h3>Count: <span style="color:blue" id="DATAcount">0</span> </h3>
<canvas id="canvas" width="480" height="256" style="background-color: black;"></canvas>
</body>
but adding one extra <h1> line as per below and it fails to load
<body>
<h1>Pico W AsyncSocketServerB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h1>Pico W AsyncSocketServerAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB</h1>
<h2>ADC: <span style="color:blue" id="POTvalue">0</span> </h2>
<h3>Count: <span style="color:blue" id="DATAcount">0</span> </h3>
<canvas id="canvas" width="480" height="256" style="background-color: black;"></canvas>
</body>
Arduino IDE 2.0.2 (have also tried 1.8.19) RP2040 2.3.3 Raspberry Pi Pico W
When using the Async_WebsocketsServer_xTreme example code unchanged all is as expected, however, if you add text to increase the size of the web page beyond 2373 characters the page will not load. I changed the text as below which works:
but adding one extra
<h1>
line as per below and it fails to load