1.0.8 • Published 1 year ago

@dr_chai/homebridge-bluebridge v1.0.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Bluebridge

Overview and Purpose

If you've come across this repository, you may have noticed that the Bluetooth module noble doesn’t function correctly when multiple Bluetooth plugins are integrated into the same Homebridge hub. I built this plugin to serve as a Bluetooth gateway and allow my two bluetooth devices (Mi thermometer and Airthings sensor) to be read without interference in my Raspberry Pi with single bluetooth adapter.

The interface of bluetooth profile:

A central Bluetooth instance will register all Bluetooth devices that implement the interface below. This allows for connection management and data parsing.

interface PluginProfile<D> {
  name: string;
  autoRemove: boolean;
  readOn: ReadOnType;
  uuid: string;
  parse(buffer: Buffer): D;
  validate(peripheral: import('@abandonware/noble').Peripheral): boolean;
  context(peripheral: import('@abandonware/noble').Peripheral): AccessoryContext;
  newAccessory(platform: import('homebridge').DynamicPlatformPlugin, accessory: import('homebridge').PlatformAccessory): BLEAccessoryType<D>;
  customServiceAndCharacteristics?(homebridge: never, config: object): CustomTypes;
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago