ogs-plugin-sdk
    Preparing search index...

    Interface BluetoothDevice

    Represents a bluetooth device

    interface BluetoothDevice {
        id: string;
        address: string;
        addressType: "public" | "random";
        connectable: boolean;
        advertisement: BluetoothDeviceAdvertisement;
        rssi: number;
        mtu: number | null;
        state: BluetoothDeviceState;
        connect(): Promise<void>;
        discoverAllServicesAndCharacteristics(): Promise<
            | {
                services: BluetoothService[];
                characteristics: BluetoothCharacteristic[];
            }
            | undefined,
        >;
    }
    Index

    Properties

    id: string
    address: string
    addressType: "public" | "random"
    connectable: boolean
    rssi: number
    mtu: number | null

    Methods

    • Returns Promise<void>