NiimBlueLib Docs
    Preparing search index...

    Interface NiimbotBluetoothClientConnectOptions

    interface NiimbotBluetoothClientConnectOptions {
        authorizedDevice?: BluetoothDevice;
    }
    Index

    Properties

    authorizedDevice?: BluetoothDevice

    Allows using authorized device without device picker dialog. "Use the new permissions backend for Web Bluetooth" at chrome://flags must be enabled to use navigator.bluetooth.gedDevices()

    Example:

    const authorized = await navigator.bluetooth.getDevices();
    const authorizedDevice = authorized.find(d => d.name.includes("B1"));
    await client.connect({ authorizedDevice });