Skip to content

Commit

Permalink
Set info.connection false when reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
pdbjjens committed Jan 20, 2024
1 parent c0bd3f9 commit b30d25d
Show file tree
Hide file tree
Showing 2 changed files with 2,964 additions and 1,562 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class MyVbus extends utils.Adapter {
break;
case 'RECONNECTING':
this.log.warn('Connection interrupted, trying to reconnect');
this.setStateAsync('info.connection', false, true);
break;
default:
this.log.debug('Connection state changed to ' + connectionState);
Expand Down
Loading

0 comments on commit b30d25d

Please sign in to comment.