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

bino oetomo bino at indoakses-online.com
Sun Dec 25 19:39:29 EST 2011


Dear Tim Allen and Jean-Paul
I realy appreciate your enlightment .. i try it and it works

Sincerely
-bino-
On 12/23/2011 11:15 AM, Tim Allen wrote:
> It looks like "self.writethis" is an Element, not a string. Python's
> print statement will automatically call str() on things before it prints
> them, but Twisted's .write() methods do not. You'll have to change your
> code to something like this:
>
>      self.serial.write(str(self.writethis))
>
> Tim.
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list