Skip to content

Commit

Permalink
upgrade node-opcua to 0.54 + stop pinging server
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesbradshaw committed Apr 19, 2016
1 parent 1a2c078 commit 8ace060
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions data/opcua.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ function logAllEmitterEvents(eventEmitter)
//opc.tcp://opcua.demo-this.com:51212/UA/SampleServer opclabs
//opc.tcp://demo.ascolab.com:4841

const pinger = (session, handle)=> {
session.browse('', function(err, browseResult){
if(!err){
setTimeout(()=>pinger(session, handle), 10000);
}
else {
handle(session,err);
}
});
}

class UASession {
constructor(){
Expand Down Expand Up @@ -104,7 +94,6 @@ class UASession {
go();
}
else {
pinger(session, _this.handleError);
console.log('session created');
observable.onNext(session);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"graphql-relay": "0.3.6",
"material-ui": "^0.15.0-alpha.2",
"merge": "^1.2.0",
"node-opcua": "0.0.52",
"node-opcua": "0.0.54",
"react": "0.14.8",
"react-dom": "0.14.7",
"react-flexbox-grid": "^0.9.5",
Expand Down

0 comments on commit 8ace060

Please sign in to comment.