• Connect to a BLE device

    Parameters

    • address: string

      The address of the device to connect to

    • onDisconnect: null | (() => void)

      A function that will be called when the device disconnects

    Returns Promise<void>