homebridge-am43-blinds
homebridge-am43-blinds copied to clipboard
A couple of crashes
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 butisConnected
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)
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.