Post topics, source code that relate to the Arduino Platform

User avatar
By baron
#50024 Hi all,

I'm trying to use my ESP as an Access Point for displaying data at a webserver.

So far I get the data via UART and can display them on a small HTML page. However for updating this data I always have to refresh the whole page, which is not very useful.

I already tried to use AJAX, but I'm not that familiar with it and it doesn't work:

"<p id=\"demo\"></p>
<script>
var myVar = setInterval(myTimer, 1000);
function myTimer() {
document.getElementById(\"demo\").innerHTML = \""+sData+"\";
}
</script>";


The data, I would like to update, are stored in sData, which is just a String.

I hope you can help me.

Thanks a lot :)