Skip to content

Commit

Permalink
fix(hci): added state event support to better handle uart and usb `is…
Browse files Browse the repository at this point in the history
…Up` changes
  • Loading branch information
stoprocent committed Nov 2, 2023
1 parent bbdbca4 commit d9216ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hci-socket/hci.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Hci.STATUS_MAPPER = STATUS_MAPPER;
Hci.prototype.init = function (options) {
this._socket.on('data', this.onSocketData.bind(this));
this._socket.on('error', this.onSocketError.bind(this));
this._socket.on('state', this.pollIsDevUp.bind(this));

if (this._userChannel) {
this._socket.bindUser(this._deviceId, this._bindParams);
Expand Down

0 comments on commit d9216ba

Please sign in to comment.