You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Provider,Dependency}from"@ritley/decorators";import{OpcuaService}from"../services/opcua.service";import{ConfigService}from"../services/config.service";export{ApiModule}
@Provider.factory
@Dependency("client",OpcuaService)
@Dependency("config",ConfigService)classApiModule{values=null;// FIXME: ritley (lib) should provide "dependency fulfilled" life cycle in order to avoid this:constructor(){setTimeout(()=>this.initialize(),10);}initialize(){this.config.getContents().then(values=>{this.values=values;this.start(this.values.address);})}asyncstart(address){awaitthis.client.doConnect(address);awaitthis.client.createSession();}browse(nodeId){returnthis.client.browseChilds(nodeId||this.values.rootNode);}}
The text was updated successfully, but these errors were encountered:
sample issue:
The text was updated successfully, but these errors were encountered: