command_inout_asynch method will not re-connnect to device
|
|
---|---|
Hi I have a question reagarding command_inout_asynch(…) method In pdf manual: 6.1.5.1 long DeviceProxy::command_inout_asynch(string &name, bool forget) Whether this can be understood as: whether forget parameter set true or false, asyn method will not re-connnect device Thanks |
|
|
---|---|
Hi Jimmy, If you give the value true for the forget input parameter, it means that you want "fire and forget" and then you have to handle re-connection yourself. If you set this parameter to false (which is the default), re-connection will be handled by the Tango layer Hoping this help Emmanuel |
|
|
---|---|
Hi Manu Thanks for your your answer! But in my test program(for Tango 8.1.2), after restart device, command_inout_asynch(…) method will not re-connect, i am not get what's wrong with my code
|
|
|
---|---|
Hi Jimmy, I think your code is not 100 % correct. You are missing a DeviceProxy::command_inout_reply() method call. It is this method which according to the eventual received exception will generate the re-connection. Nevertheless, I have tried your code adding it the command_inout_reply() method and… noticed that the re-connection did not happened! Re-connection works fine in case you re-start the DS process, in case the DS crashed but not after a admin device DevRestart command. This is due to the exception received during the command_inout_reply method which is different in this case. I have fixed this in Tango 9 repository and this bug fix will be available in next Tango 9 release Best regards Emmanuel |
|
|
---|---|
Hi Manu Thanks for your your help |