I just wanna ask on How to to send int value to html asyncwebserver
Here's my sample code
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
int btnCount=0;
const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<body>
</body></html>)rawliteral";
void ICACHE_RAM_ATTR btnPush()
{
btnCount ++;
}
void setup () {
attachInterrupt(D6, btnPush, RISING);
pinMode(D6, INPUT);
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
request->send_P(200, "text/html", index_html, processor);
});
server.begin();
}
void loop {
}
All i want to do is when i press the pushbutton "btnCount" will appear on html webserver
Hope you help me w/ this thank you MORE POWER