-->
Page 1 of 1

Refreshing data in AP mode

PostPosted: Fri Jul 01, 2016 3:30 am
by baron
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 :)