Hi to all
I have a web server that constantly sending the read data from a serial, if on the browser I connect <ip: port> read only once the value without updating.
In Index.html I have added this:
<script type="text/javascript">setTimeout(function(){location.href=location.href} , 2000);</script>
with 2 second refresh.
This work but it's the only way or there are alternatives?
Thanks
I have a web server that constantly sending the read data from a serial, if on the browser I connect <ip: port> read only once the value without updating.
In Index.html I have added this:
<script type="text/javascript">setTimeout(function(){location.href=location.href} , 2000);</script>
with 2 second refresh.
This work but it's the only way or there are alternatives?
Thanks