diff --git a/classes/bluetooth.BluetoothImpl.html b/classes/bluetooth.BluetoothImpl.html index 1e5e723b..3273a4f2 100644 --- a/classes/bluetooth.BluetoothImpl.html +++ b/classes/bluetooth.BluetoothImpl.html @@ -1,5 +1,5 @@ BluetoothImpl | Node Web Bluetooth

Bluetooth class

-

Hierarchy

  • EventDispatcher<BluetoothEvents>
    • BluetoothImpl

Implements

  • Bluetooth

Constructors

Hierarchy

  • EventDispatcher<BluetoothEvents>
    • BluetoothImpl

Implements

  • Bluetooth

Constructors

Properties

Accessors

Constructors

Properties

emitter: EventEmitter<DefaultEventMap> = ...
referringDevice?: BluetoothDevice

Referring device for the bluetooth instance

-

Accessors

  • set onadvertisementreceived(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onavailabilitychanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set oncharacteristicvaluechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set ongattserverdisconnected(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceadded(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onservicechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceremoved(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

Methods

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • listener: ((this: this, ev: BluetoothEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • listener: EventListener

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Gets the availability of a bluetooth adapter

    +

Returns BluetoothImpl

Properties

emitter: EventEmitter<DefaultEventMap> = ...
referringDevice?: BluetoothDevice

Referring device for the bluetooth instance

+

Accessors

  • set onadvertisementreceived(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onavailabilitychanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set oncharacteristicvaluechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set ongattserverdisconnected(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceadded(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onservicechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceremoved(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

Methods

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • listener: ((this: this, ev: BluetoothEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • listener: EventListener

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Gets the availability of a bluetooth adapter

    Returns Promise<boolean>

    Promise containing a flag indicating bluetooth availability

    -
  • Get all bluetooth devices

    -

    Returns Promise<BluetoothDevice[]>

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • callback: ((this: this, ev: BluetoothEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • callback: EventListener

    Returns void

  • Scans for a device matching optional filters

    +
  • Get all bluetooth devices

    +

    Returns Promise<BluetoothDevice[]>

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • callback: ((this: this, ev: BluetoothEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothEvents

    Parameters

    • type: K
    • callback: EventListener

    Returns void

  • Scans for a device matching optional filters

    Parameters

    • options: RequestDeviceOptions = ...

      The options to use when scanning

    Returns Promise<BluetoothDevice>

    Promise containing a device which matches the options

    -
+
diff --git a/classes/characteristic.BluetoothRemoteGATTCharacteristicImpl.html b/classes/characteristic.BluetoothRemoteGATTCharacteristicImpl.html index 961d8d38..2a97ff83 100644 --- a/classes/characteristic.BluetoothRemoteGATTCharacteristicImpl.html +++ b/classes/characteristic.BluetoothRemoteGATTCharacteristicImpl.html @@ -1,5 +1,5 @@ BluetoothRemoteGATTCharacteristicImpl | Node Web Bluetooth

Bluetooth Remote GATT Characteristic class

-

Hierarchy

  • EventDispatcher<CharacteristicEvents>
    • BluetoothRemoteGATTCharacteristicImpl

Implements

  • BluetoothRemoteGATTCharacteristic

Constructors

Hierarchy

  • EventDispatcher<CharacteristicEvents>
    • BluetoothRemoteGATTCharacteristicImpl

Implements

  • BluetoothRemoteGATTCharacteristic

Constructors

Properties

Constructors

Properties

emitter: EventEmitter<DefaultEventMap> = ...
properties: BluetoothCharacteristicProperties

The properties of the characteristic

-
service: BluetoothRemoteGATTServiceImpl = undefined

The service the characteristic is related to

-
uuid: string = undefined

The unique identifier of the characteristic

-

Accessors

  • set oncharacteristicvaluechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • get value(): DataView
  • The value of the characteristic

    -

    Returns DataView

Methods

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • listener: ((this: this, ev: CharacteristicEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: CharacteristicEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • listener: EventListener

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Gets a single characteristic descriptor

    +

Returns BluetoothRemoteGATTCharacteristicImpl

Properties

emitter: EventEmitter<DefaultEventMap> = ...
properties: BluetoothCharacteristicProperties

The properties of the characteristic

+
service: BluetoothRemoteGATTServiceImpl = undefined

The service the characteristic is related to

+
uuid: string = undefined

The unique identifier of the characteristic

+

Accessors

  • set oncharacteristicvaluechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • get value(): DataView
  • The value of the characteristic

    +

    Returns DataView

Methods

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • listener: ((this: this, ev: CharacteristicEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: CharacteristicEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • listener: EventListener

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Gets a single characteristic descriptor

    Parameters

    • descriptor: string | number

      descriptor UUID

    Returns Promise<BluetoothRemoteGATTDescriptor>

    Promise containing the descriptor

    -
  • Gets a list of the characteristic's descriptors

    +
  • Gets a list of the characteristic's descriptors

    Parameters

    • Optionaldescriptor: string | number

      descriptor UUID

    Returns Promise<BluetoothRemoteGATTDescriptor[]>

    Promise containing an array of descriptors

    -
  • Gets the value of the characteristic

    +
  • Gets the value of the characteristic

    Returns Promise<DataView>

    Promise containing the value

    -
  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • callback: ((this: this, ev: CharacteristicEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: CharacteristicEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • callback: EventListener

    Returns void

  • Start notifications of changes for the characteristic

    +
  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • callback: ((this: this, ev: CharacteristicEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: CharacteristicEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends "characteristicvaluechanged"

    Parameters

    • type: K
    • callback: EventListener

    Returns void

  • Start notifications of changes for the characteristic

    Returns Promise<BluetoothRemoteGATTCharacteristic>

    Promise containing the characteristic

    -
  • Stop notifications of changes for the characteristic

    +
  • Stop notifications of changes for the characteristic

    Returns Promise<BluetoothRemoteGATTCharacteristic>

    Promise containing the characteristic

    -
  • Updates the value of the characteristic

    +
  • Updates the value of the characteristic

    Parameters

    • value: ArrayBuffer | ArrayBufferView

      The value to write

      -

    Returns Promise<void>

  • Updates the value of the characteristic without waiting for a response

    +

Returns Promise<void>

Returns Promise<void>

+

Returns Promise<void>

diff --git a/classes/descriptor.BluetoothRemoteGATTDescriptorImpl.html b/classes/descriptor.BluetoothRemoteGATTDescriptorImpl.html index d3d4f829..12ebe291 100644 --- a/classes/descriptor.BluetoothRemoteGATTDescriptorImpl.html +++ b/classes/descriptor.BluetoothRemoteGATTDescriptorImpl.html @@ -1,5 +1,5 @@ BluetoothRemoteGATTDescriptorImpl | Node Web Bluetooth

Bluetooth Remote GATT Descriptor class

-

Implements

  • BluetoothRemoteGATTDescriptor

Constructors

Implements

  • BluetoothRemoteGATTDescriptor

Constructors

Properties

Accessors

value @@ -7,11 +7,11 @@ writeValue

Constructors

Properties

characteristic: BluetoothRemoteGATTCharacteristic = undefined

The characteristic the descriptor is related to

-
uuid: string = undefined

The unique identifier of the descriptor

-

Accessors

  • get value(): DataView
  • The value of the descriptor

    -

    Returns DataView

Methods

  • Gets the value of the descriptor

    +

Returns BluetoothRemoteGATTDescriptorImpl

Properties

characteristic: BluetoothRemoteGATTCharacteristic = undefined

The characteristic the descriptor is related to

+
uuid: string = undefined

The unique identifier of the descriptor

+

Accessors

  • get value(): DataView
  • The value of the descriptor

    +

    Returns DataView

Methods

  • Gets the value of the descriptor

    Returns Promise<DataView>

    Promise containing the value

    -
  • Updates the value of the descriptor

    +
  • Updates the value of the descriptor

    Parameters

    • value: ArrayBuffer | ArrayBufferView

      The value to write

      -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/classes/device.BluetoothDeviceImpl.html b/classes/device.BluetoothDeviceImpl.html index 8eb7d284..7ddee2f4 100644 --- a/classes/device.BluetoothDeviceImpl.html +++ b/classes/device.BluetoothDeviceImpl.html @@ -1,5 +1,5 @@ BluetoothDeviceImpl | Node Web Bluetooth

Bluetooth Device class

-

Hierarchy

  • EventDispatcher<BluetoothDeviceEvents>
    • BluetoothDeviceImpl

Implements

  • BluetoothDevice

Constructors

Hierarchy

  • EventDispatcher<BluetoothDeviceEvents>
    • BluetoothDeviceImpl

Implements

  • BluetoothDevice

Constructors

Properties

emitter gatt id @@ -19,11 +19,11 @@ watchAdvertisements

Constructors

Properties

emitter: EventEmitter<DefaultEventMap> = ...
gatt: BluetoothRemoteGATTServer = undefined

The gatt server of the device

-
id: string = undefined

The unique identifier of the device

-
name: string = undefined

The name of the device

-
watchingAdvertisements: boolean = false

Whether adverts are being watched (not implemented)

-

Accessors

  • set onadvertisementreceived(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set oncharacteristicvaluechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set ongattserverdisconnected(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceadded(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onservicechanged(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

  • set onserviceremoved(fn): void
  • Parameters

    • fn: ((ev: Event) => void)
        • (ev): void
        • Parameters

          • ev: Event

          Returns void

    Returns void

Methods

  • Type Parameters

    • K extends keyof BluetoothDeviceEvents

    Parameters

    • type: K
    • listener: ((this: this, ev: BluetoothDeviceEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothDeviceEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothDeviceEvents

    Parameters

    • type: K
    • listener: EventListener

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Forget this device

    -

    Returns Promise<void>

  • Type Parameters

    • K extends keyof BluetoothDeviceEvents

    Parameters

    • type: K
    • callback: ((this: this, ev: BluetoothDeviceEvents[K]) => void)
        • (this, ev): void
        • Parameters

          • this: this
          • ev: BluetoothDeviceEvents[K]

          Returns void

    Returns void

  • Type Parameters

    • K extends keyof BluetoothDeviceEvents

    Parameters

    • type: K
    • callback: EventListener

    Returns void

  • Stops watching adverts from this device (not implemented)

    -

    Returns Promise<void>

  • Starts watching adverts from this device (not implemented)

    -

    Returns Promise<void>

+
  • forgetFn: (() => void)
  • Returns BluetoothDeviceImpl

    Properties

    emitter: EventEmitter<DefaultEventMap> = ...
    gatt: BluetoothRemoteGATTServer = undefined

    The gatt server of the device

    +
    id: string = undefined

    The unique identifier of the device

    +
    name: string = undefined

    The name of the device

    +
    watchingAdvertisements: boolean = false

    Whether adverts are being watched (not implemented)

    +

    Accessors

    • set onadvertisementreceived(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set oncharacteristicvaluechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set ongattserverdisconnected(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceadded(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onservicechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceremoved(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    Methods

    • Type Parameters

      • K extends keyof BluetoothDeviceEvents

      Parameters

      • type: K
      • listener: ((this: this, ev: BluetoothDeviceEvents[K]) => void)
          • (this, ev): void
          • Parameters

            • this: this
            • ev: BluetoothDeviceEvents[K]

            Returns void

      Returns void

    • Type Parameters

      • K extends keyof BluetoothDeviceEvents

      Parameters

      • type: K
      • listener: EventListener

      Returns void

    • Parameters

      • event: Event

      Returns boolean

    • Forget this device

      +

      Returns Promise<void>

    • Type Parameters

      • K extends keyof BluetoothDeviceEvents

      Parameters

      • type: K
      • callback: ((this: this, ev: BluetoothDeviceEvents[K]) => void)
          • (this, ev): void
          • Parameters

            • this: this
            • ev: BluetoothDeviceEvents[K]

            Returns void

      Returns void

    • Type Parameters

      • K extends keyof BluetoothDeviceEvents

      Parameters

      • type: K
      • callback: EventListener

      Returns void

    • Stops watching adverts from this device (not implemented)

      +

      Returns Promise<void>

    • Starts watching adverts from this device (not implemented)

      +

      Returns Promise<void>

    diff --git a/classes/server.BluetoothRemoteGATTServerImpl.html b/classes/server.BluetoothRemoteGATTServerImpl.html index c6b1899f..23d078e3 100644 --- a/classes/server.BluetoothRemoteGATTServerImpl.html +++ b/classes/server.BluetoothRemoteGATTServerImpl.html @@ -1,5 +1,5 @@ BluetoothRemoteGATTServerImpl | Node Web Bluetooth

    Bluetooth Remote GATT Server class

    -

    Implements

    • BluetoothRemoteGATTServer

    Constructors

    Implements

    • BluetoothRemoteGATTServer

    Constructors

    Properties

    Accessors

    Methods

    connect @@ -8,15 +8,15 @@ getPrimaryServices

    Constructors

    Properties

    device: BluetoothDeviceImpl = undefined

    The device the gatt server is related to

    -

    Accessors

    • get connected(): boolean
    • Whether the gatt server is connected

      -

      Returns boolean

    Methods

    • Connect the gatt server

      +

    Returns BluetoothRemoteGATTServerImpl

    Properties

    device: BluetoothDeviceImpl = undefined

    The device the gatt server is related to

    +

    Accessors

    • get connected(): boolean
    • Whether the gatt server is connected

      +

      Returns boolean

    Methods

    • Connect the gatt server

      Returns Promise<BluetoothRemoteGATTServer>

      Promise containing the gatt server

      -
    • Disconnect the gatt server

      -

      Returns void

    • Gets a single primary service contained in the gatt server

      +
    • Disconnect the gatt server

      +

      Returns void

    • Gets a single primary service contained in the gatt server

      Parameters

      • service: BluetoothServiceUUID

        service UUID

      Returns Promise<BluetoothRemoteGATTService>

      Promise containing the service

      -
    • Gets a list of primary services contained in the gatt server

      +
    • Gets a list of primary services contained in the gatt server

      Parameters

      • Optionalservice: BluetoothServiceUUID

        service UUID

      Returns Promise<BluetoothRemoteGATTService[]>

      Promise containing an array of services

      -
    +
    diff --git a/classes/service.BluetoothRemoteGATTServiceImpl.html b/classes/service.BluetoothRemoteGATTServiceImpl.html index 386a19c9..b0a15f3d 100644 --- a/classes/service.BluetoothRemoteGATTServiceImpl.html +++ b/classes/service.BluetoothRemoteGATTServiceImpl.html @@ -1,5 +1,5 @@ BluetoothRemoteGATTServiceImpl | Node Web Bluetooth

    Bluetooth Remote GATT Service class

    -

    Hierarchy

    • EventDispatcher<ServiceEvents>
      • BluetoothRemoteGATTServiceImpl

    Implements

    • BluetoothRemoteGATTService

    Constructors

    Hierarchy

    • EventDispatcher<ServiceEvents>
      • BluetoothRemoteGATTServiceImpl

    Implements

    • BluetoothRemoteGATTService

    Constructors

    Properties

    Constructors

    Properties

    device: BluetoothDeviceImpl = undefined

    The device the service is related to

    -
    emitter: EventEmitter<DefaultEventMap> = ...
    isPrimary: boolean = false

    Whether the service is a primary one

    -
    uuid: string = undefined

    The unique identifier of the service

    -

    Accessors

    • set oncharacteristicvaluechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceadded(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onservicechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceremoved(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    Methods

    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • listener: ((this: this, ev: ServiceEvents[K]) => void)
          • (this, ev): void
          • Parameters

            • this: this
            • ev: ServiceEvents[K]

            Returns void

      Returns void

    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • listener: EventListener

      Returns void

    • Parameters

      • event: Event

      Returns boolean

    • Gets a single characteristic contained in the service

      +

    Returns BluetoothRemoteGATTServiceImpl

    Properties

    device: BluetoothDeviceImpl = undefined

    The device the service is related to

    +
    emitter: EventEmitter<DefaultEventMap> = ...
    isPrimary: boolean = false

    Whether the service is a primary one

    +
    uuid: string = undefined

    The unique identifier of the service

    +

    Accessors

    • set oncharacteristicvaluechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceadded(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onservicechanged(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    • set onserviceremoved(fn): void
    • Parameters

      • fn: ((ev: Event) => void)
          • (ev): void
          • Parameters

            • ev: Event

            Returns void

      Returns void

    Methods

    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • listener: ((this: this, ev: ServiceEvents[K]) => void)
          • (this, ev): void
          • Parameters

            • this: this
            • ev: ServiceEvents[K]

            Returns void

      Returns void

    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • listener: EventListener

      Returns void

    • Parameters

      • event: Event

      Returns boolean

    • Gets a single characteristic contained in the service

      Parameters

      • characteristic: BluetoothCharacteristicUUID

        characteristic UUID

      Returns Promise<BluetoothRemoteGATTCharacteristic>

      Promise containing the characteristic

      -
    • Gets a list of characteristics contained in the service

      +
    • Gets a list of characteristics contained in the service

      Parameters

      • Optionalcharacteristic: BluetoothCharacteristicUUID

        characteristic UUID

      Returns Promise<BluetoothRemoteGATTCharacteristic[]>

      Promise containing an array of characteristics

      -
    • Gets a single service included in the service

      +
    • Gets a single service included in the service

      Parameters

      • service: BluetoothServiceUUID

        service UUID

      Returns Promise<BluetoothRemoteGATTService>

      Promise containing the service

      -
    • Gets a list of services included in the service

      +
    • Gets a list of services included in the service

      Parameters

      • Optionalservice: BluetoothServiceUUID

        service UUID

      Returns Promise<BluetoothRemoteGATTService[]>

      Promise containing an array of services

      -
    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • callback: ((this: this, ev: ServiceEvents[K]) => void)
          • (this, ev): void
          • Parameters

            • this: this
            • ev: ServiceEvents[K]

            Returns void

      Returns void

    • Type Parameters

      • K extends keyof ServiceEvents

      Parameters

      • type: K
      • callback: EventListener

      Returns void

    +
    diff --git a/enums/adapters_simpleble.AddressType.html b/enums/adapters_simpleble.AddressType.html index a2fc5ba3..116fa99a 100644 --- a/enums/adapters_simpleble.AddressType.html +++ b/enums/adapters_simpleble.AddressType.html @@ -1,5 +1,5 @@ AddressType | Node Web Bluetooth

    SimpleBLE address type.

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    PUBLIC
    RANDOM
    UNSPECIFIED
    +

    Enumeration Members

    PUBLIC
    RANDOM
    UNSPECIFIED
    diff --git a/functions/adapters_simpleble.getAdapters.html b/functions/adapters_simpleble.getAdapters.html index a81e860e..efd1d88b 100644 --- a/functions/adapters_simpleble.getAdapters.html +++ b/functions/adapters_simpleble.getAdapters.html @@ -1 +1 @@ -getAdapters | Node Web Bluetooth
    +getAdapters | Node Web Bluetooth
    diff --git a/functions/adapters_simpleble.isEnabled.html b/functions/adapters_simpleble.isEnabled.html index 84c54bb1..a00f8fd3 100644 --- a/functions/adapters_simpleble.isEnabled.html +++ b/functions/adapters_simpleble.isEnabled.html @@ -1 +1 @@ -isEnabled | Node Web Bluetooth
    +isEnabled | Node Web Bluetooth
    diff --git a/index.html b/index.html index 21a9cf0f..482168f7 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,12 @@

    See the examples or view the API documentation at:

    https://thegecko.github.io/webbluetooth/

    +

    Binaries are built to support the following platforms:

    +

    The module exports a default navigator.bluetooth instance, the Bluetooth class to allow you to instantiate your own bluetooth instances and the Bluetooth helper methods:

  • getService: ((name: string | number) => string)
  • +