[Twisted-Python] HomeMatic - xmlrpc twisted !!
Jasper St. Pierre
jstpierre at mecheye.net
Fri May 25 03:41:50 MDT 2012
ClientCreator needs a protocol. See:
On Fri, May 25, 2012 at 5:27 AM, vinod kumar <vk.86.811 at gmail.com> wrote:
> Hi everyone,
> I'm trying to connect to homematic server at address '192.168.1.251'
> and port '2001'. I have a sample twisted server and client on my localhost.
> It's working fine. Now to the functions in server protocol.py file, I added
> another function (as shown below) which creates another client that
> connects to homematic server. But it's giving following error when I start
> the client.
> File "/home/vinodh/Desktop/homematic/xmlrpc_twisted/protocol.py",
> line 45, in xmlrpc_init
> d = ClientCreator(reactor).connectTCP(self,'192.168.1.251',2001)
> exceptions.TypeError: __init__() takes at least 3 arguments (2
> my scenario is this way:
> mycleint ---> myserver(protocol file--->cliet-->homematic server)
> Please help me out.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python