homebridge-am43-blinds icon indicating copy to clipboard operation
homebridge-am43-blinds copied to clipboard

A couple of crashes

Open neil-morrison44 opened this issue 4 years ago • 1 comments

Couple of things I've ran into, I'm trying to work out what's happening:

  • Somehow it'll get to this point: https://github.com/renssies/homebridge-am43-blinds/blob/main/lib/AM43Device.js#L325 while this.blindsControlCharacteristic is null but isConnected is true - not sure what's going on exactly.

  • Somehow https://github.com/abandonware/noble/blob/master/lib/hci-socket/gatt.js#L549 this gets called when this._characteristics[serviceUuid] is null and serviceUuid is fe51, it'll run fine for a few hours then hit this.

(Everything's with a Pi 3B)

neil-morrison44 avatar Aug 25 '20 12:08 neil-morrison44

The first one can happen when discovery fails. Bluetooth works in this order Scan for devices -> Connect to the device -> Discover Services -> Discover Characteristics for services. It probably failed one of the last 2 steps and currently, it doesn't retry.

The seconds might be related to it as well, but I'm not sure.

renssies avatar Aug 31 '20 08:08 renssies