[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:
http://docs.huihoo.com/python/twisted/howto/clients.html
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.
> Error:
> 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
> given)"
>
> my scenario is this way:
> mycleint ---> myserver(protocol file--->cliet-->homematic server)
>
> Please help me out.
>
> Thanks,
> Vinod
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
--
Jasper
More information about the Twisted-Python
mailing list