On Monday 26 October 2009 16:45:25 Slim wrote:
> Hello all,
> I'd like to make a web based Serial Terminal.
> Is there some examples showing how to manage asynchronous external
> event based updates of a web page.
> (eg. I test in the controller if some chars are available on the
> pyserial buffer using the serial.inWaiting() if yes I update the
> view) .

Poll the serial line in a thread (or using non-blocking IO), and poll the 
webserver for new characters using a shortly timed ajax-loop.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to