[New] PlcGwService.register(String, String) now returns PlcAddressKey

This commit is contained in:
Robert von Burg 2020-04-15 13:08:23 +02:00
parent 2f02bfec1c
commit cd2757a488
1 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,10 @@ public abstract class PlcGwService implements PlcNotificationListener, PlcAddres
this.state = PlcServiceState.Unregistered;
}
protected void register(String resource, String action) {
this.plcHandler.register(this.plcId, keyFor(resource, action), this);
protected PlcAddressKey register(String resource, String action) {
PlcAddressKey addressKey = keyFor(resource, action);
this.plcHandler.register(this.plcId, addressKey, this);
return addressKey;
}
protected void register(PlcAddressKey key) {