Error using relay_set()
-
Hello everyone,
when i use the relay_set() method, i get an error like this (although the relay has switched):File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 239, in _request
return response['result']
TypeError: 'NoneType' object has no attribute 'getitem'Even if I use the example code on github, the error still occurs.
I'm using a Raspberry Pi 3 and the Python 2.7 interpreter.
That is the example code i use:from jsonrpclib import Server s=Server("http://192.168.10.10/rpc") s.relay_set(1,1)
All the other methods like relay_get(), ao_set()… are working fine
Does anyone have the same issue?greeting
PiBody
-
Hello everyone,
when i use the relay_set() method, i get an error like this (although the relay has switched):File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 239, in _request
return response['result']
TypeError: 'NoneType' object has no attribute 'getitem'Even if I use the example code on github, the error still occurs.
I'm using a Raspberry Pi 3 and the Python 2.7 interpreter.
That is the example code i use:from jsonrpclib import Server s=Server("http://192.168.10.10/rpc") s.relay_set(1,1)
All the other methods like relay_get(), ao_set()… are working fine
Does anyone have the same issue?greeting
PiBody
-
Dupicate issue: viewtopic.php?t=140
Closing