[Twisted-Python] Question : Combining wokel XMPP and twisted.internet.serial

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Dec 22 21:57:23 EST 2011


On 02:50 am, bino at indoakses-online.com wrote:
>[snip]
>The problem is when there is msg coming from XMPP part
>It's received by the xmpp client part, but script complaining about
>'SerialPort' object has no attribute 'transport'
>I tried to send text from another xmppclient (pidgin)

A SerialPort doesn't have a transport.  It is a transport.  Instead of:

    self.serial.transport.write(foo)

try

    self.serial.write(foo)

Jean-Paul



More information about the Twisted-Python mailing list