-->
Page 1 of 1

I want read rs232 receive and output as html code.

PostPosted: Thu Mar 19, 2015 1:39 am
by jupp
Hello community
I want read rs232 receive and output as html code.
how can I read data from rs232?

Jjupp

Re: I want read rs232 receive and output as html code.

PostPosted: Thu Mar 19, 2015 5:05 am
by ficeto
how do you understand "rs232" ?
If you are talking about receiving on the UART port and outputing to HTML, then you should look into web sockets. The problem is in the fact that HTML is static content and you are looking into constantly updating that content. That can be achieved by using HTML<=>JavaScript<=>WebSocket. But WebSocket has not yet been written for the ESP.
Another option is again HTML+JavaScript and the JavaScript to be regularly pooling a buffer for UART incoming data. That is huge problem because pooling is really slow and has huge overhead (think of all the requests, headers and so on that you need to output on each pool).
Those are my 2 cents :)