quentinms / homebridge-aranet4

An Homebridge plugin to get data from an Aranet4
Apache License 2.0
36 stars 1 forks source link

Load `noble` dynamically for better error handling when bluetooth isn't available #25

Open quentinms opened 1 year ago

quentinms commented 1 year ago

It would help prevent it throwing

EAFNOSUPPORT, Address family not supported by protocol

(from https://github.com/homebridge/verified/issues/505)

See https://github.com/lstrojny/homebridge-ble-thermobeacon/pull/22/files as an example of how to solve this.