So, I added this to the GeneratedDriverBase:
protected boolean canDiscover() {
return false;
}
And overrode that in Ads and Profinet, as the existing UI only showed me a
“Discovery” option for these two drivers.
Chris
Von: Christofer Dutz <[email protected]>
Datum: Mittwoch, 3. Juli 2024 um 08:32
An: [email protected] <[email protected]>
Betreff: Guess I had an upsie ...
Hi all,
While playing around with the UI tool I noticed that the PlcDriver didn’t have
any “hasDiscovery” method, but still the existing UI seems to know if a driver
supports Auto-Discovery.
Turns out in GeneratedDriverBase I have this code:
public boolean isDiscoverySupported() {
return canBrowse();
}
Which obviously doesn’t look right … I guess it makes sense to add a
“hasDiscovery” method to the driver base and to use that instead.
Chris