Closed enzo-ae closed 2 years ago
The point is, that the AdsClient is saving communication roundtrips (historically) as-much-as-possible. That means the target is not contacted during Connect. See it as a Connect preparation on the client side only. You have to fire active communication to find out if the target is available (e.g with ReadState or CreateHandler or whatever). There are thoughts internally to change this behaviour, but that would mean one extra ADS rountrip during Connect. As it is implemented actually, it is up to the user - with the disadvantage of the possibly misleading ConnectionState. As long no Communication error occurred, the ConnectionState stays 'Connected'
Closing this issue because (at least actually) it is 'As designed'.
When I run the AdsCli sample, the client only connects to the local router and switches to the Connected state even if the target doesn't exist - is there a way to figure out if the connection actually works or do I check for a variable handle creation to fail?
I don't have any Routes set up
Tested with Versions 6.0.72(74) and 6.0.155
Results: