According to the doc the command_inout_asynch should accept keyword arguments.
I try the following:
import PyTango
dp = PyTango.DeviceProxy('zreszela/tg_test/1')
dp.command_inout_asynch('DevVoid', cmd_param=None, forget=True)
And I get the following error:
sicilia@ct64suse121:~> python /siciliarep/tmp/zreszela/workspace/command_inout_asynch.py
Traceback (most recent call last):
File "/siciliarep/tmp/zreszela/workspace/command_inout_asynch.py", line 3, in <module>
dp.command_inout_asynch('DevVoid', cmd_param=None, forget=True)
TypeError: __Connection__command_inout_asynch() got an unexpected keyword argument 'cmd_param'
Hi,
Documentation was wrong.
Fix in SVN trunk since revision 25597.
Will become visible in next PyTango release 8.1.2
if you want to execute command without argument and not forget the result do:
if you want to execute command without argument and forget the result do:
Last edit: Tiago Coutinho 2014-05-14