Boks SDK Documentation - v0.0.11
    Preparing search index...

    Class WebBluetoothTransport

    Implementation of BoksTransport using the Web Bluetooth API.

    Implements

    Index

    Constructors

    Methods

    • Reads data from a specific characteristic.

      Parameters

      • uuid: string

        The characteristic UUID to read.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Subscribes to notifications from the Boks device (Notify Characteristic).

      Parameters

      • callback: (data: Uint8Array) => void

        Function called when data is received.

      Returns Promise<void>

    • Subscribes to notifications from a specific characteristic.

      Parameters

      • uuid: string

        The characteristic UUID to subscribe to.

      • callback: (data: Uint8Array) => void

        Function called when data is received.

      Returns Promise<void>