Skip to content
Snippets Groups Projects
Commit 1c78034f authored by Guillaume PICHON's avatar Guillaume PICHON
Browse files

Bug correction on subscriber registration to the connector.

parent 9cc8499a
Branches
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ public class OpcUaSubscriber extends AOpcUaSubscriber { ...@@ -79,7 +79,7 @@ public class OpcUaSubscriber extends AOpcUaSubscriber {
@Init @Init
@StateMachine(endState = DeviceState.ON) @StateMachine(endState = DeviceState.ON)
public void init() throws DevFailed { public void init() throws DevFailed {
setStatus("Init in progress.\nWaiting for connector to start and initialize."); setStatus("Init in progress.\nWaiting for connector to start and initialize...");
dynamicManager.addAttribute(new LogAttribute(1000, logger, LoggerFactory.getLogger(OpcUaAttribute.class))); dynamicManager.addAttribute(new LogAttribute(1000, logger, LoggerFactory.getLogger(OpcUaAttribute.class)));
try { try {
...@@ -88,8 +88,9 @@ public class OpcUaSubscriber extends AOpcUaSubscriber { ...@@ -88,8 +88,9 @@ public class OpcUaSubscriber extends AOpcUaSubscriber {
logger.error("An error occured will waiting for the connector.", e1); logger.error("An error occured will waiting for the connector.", e1);
throw DevFailedUtils.newDevFailed(e1); throw DevFailedUtils.newDevFailed(e1);
} }
connector.registerSubscriber(connector); connector.registerSubscriber(this);
setStatus("Init in progress.\nSubscribing...");
subscribeOpcUa(); subscribeOpcUa();
setStatus("Initialisation done."); setStatus("Initialisation done.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment