[Twisted-Python] Using SerialPort with t.a.s.Application

Albert Brandl albert.brandl at weiermayer.com
Fri Jan 28 03:29:32 EST 2011


In our project, we accumulate data from various sources. Some of them are
connected via serial line (e.g. a GPS receiver and a weather station).

I'd like to run the application with twistd. But it looks as if SerialPort
does not really fit into this framework. It does not implement IService,
so `my_serial_port.setServiceParent(collection)` does not work.

Is there any technical reason that SerialPort does not implement 
IService? Could you suggest a workaround for this problem (other than 
dumping t.a.s.Application ;-))?

Best regards,

Albert Brandl
Weiermayer Solutions GmbH      | Abteistraße 12, A-4813 Altmünster
phone: +43 (0) 720 70 30 14    | fax: +43 (0) 7612 20 3 56
web: http://www.weiermayer.com

More information about the Twisted-Python mailing list