Ticket #4847 enhancement new
Improve integration of SerialPort (via an endpoint)
|Reported by:||brandl||Owned by:||ashfall|
(diff, github, buildbot, log)
|Author:||exarkun, ashfall||Launchpad Bug:|
There is no easy way to create a SerialPort instance and use it with twistd (like e.g. TCPServer). It would be nice if the SerialPort could be treated in the same way, or at least similarly.
This can be accomplished by implementing a serial endpoint that can be instantiated with (server|client)FromString (*). Use the plugin framework and implement an appropriate string parser to extend the existing machinery.
See also the discussion on the mailing list, starting with http://twistedmatrix.com/pipermail/twisted-python/2011-January/023429.html
(*) I don't know if a serial port is more like a server or a client. Maybe this depends on the application...?