Placeholder updated but webpage not refreshed #27
Unanswered
RobinMosedale
asked this question in
Q&A
Replies: 2 comments 5 replies
-
hello, |
Beta Was this translation helpful? Give feedback.
4 replies
-
@RobinMosedale everything works fine, like you have coded, we can see in the different content fetched the new body that is sent from the server and it is updated. Now, this is up to you to make that work in html ;-) Good luck! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My apologies, I'm new to ESPAysncWebserver, and battling to see what I'm doing wrong.
Standard ESP32 Wroom development board. Arduino 2.3.2
](https://GitHub.com/mathieucarbou/ESPAsyncWebServer/releases/)
I was attracted as as part of another program I'd like a webserver which updates changing variables, similar to the sensor monitoring programs elsewhere.
This is a cut down version focussing on merely that.
There's a setInterval in the html, generating an interval of 1 second new XMLHttp sending a simple address.
There are simple server.on calls to capture the address, one without a processor callback, and one with a processor callback, with aysyncWebserverRequest, with sufficient serial.prints to track operation.
The issue: I can see the process traps working correctly and the %DATA% placeholder contents being sent. However, the webpage loads on initial request, but is not refreshing in following transmissions, except by a manual refresh. Am I missing something either in HTML or misinterpreting the asyncWebServer operation. I'm struggling having trawled examples for the simplest of example.
Here are a couple of screenshots. The simple counter is shown on the console log, and can be seen increasing, but the webpage is not being updating (same count) showing Test1 instead of test127.

Here is the ESP32 program:
`
`
Here we can see the DATA chatter both on the Web page and esp32 webserver

Beta Was this translation helpful? Give feedback.
All reactions