BleAdvertisement

This class is a representation of a BLE Advertisement for a BlePeripheral in Homey. This class must not be initiated by the developer, but retrieved by calling ManagerBle#discover or ManagerBle#find.

Properties

address

address: string

The mac address of the peripheral

Type

  • string

addressType

addressType: string

The address type of the peripheral

Type

  • string

connectable

connectable: boolean

Indicates if Homey can connect to the peripheral

Type

  • boolean

id

id: string

Id of the peripheral assigned by Homey

Type

  • string

localName

localName: string

The local name of the peripheral

Type

  • string

manufacturerData

manufacturerData: Buffer

Manufacturer specific data for peripheral

Type

  • Buffer

rssi

rssi: number

The rssi signal strength value for the peripheral

Type

  • number

serviceData

serviceData: Array.<{uuid: string, data: Buffer}>

Array of service data entries

Type

  • Array.<{uuid: string, data: Buffer}>

serviceUuids

serviceUuids: Array.<string>

Array of service uuids

Type

  • Array.<string>

uuid

uuid: string

Uuid of the peripheral

Type

  • string

Methods

connect

(async) connect(): Promise.<BlePeripheral>

Connect to the BLE peripheral this advertisement references

Returns

Promise.<BlePeripheral>