Nationwide Polamorous Matrimony

    @ledgerhq/hw-transport-web-ble
    TypeScript icon, indicating that this package has built-in type declarations

    6.11.2 • Public • Published

    Github, Ledger Devs Slack

    @ledgerhq/hw-transport-web-ble

    Allows to communicate with Ledger Hardware Wallets.

    [Web] (Bluetooth)check browser support.

    API

    Table of Contents

    BluetoothTransport

    Extends Transport

    react-native bluetooth BLE implementation

    Parameters

    • device Device
    • writeCharacteristic Characteristic
    • notifyObservable Observable<any>
    • deviceModel DeviceModel

    Examples

    import BluetoothTransport from "@ledgerhq/hw-transport-web-ble";

    exchange

    Exchange with the device using APDU protocol.

    Parameters

    Returns Promise<Buffer> a promise of apdu response

    observeAvailability

    observe event with { available: bool, type: string } (available is generic, type is specific) an event is emit once and then each time it changes

    Parameters
    • observer any

    listen

    Scan for Ledger Bluetooth devices. On this web implementation, it only emits ONE device, the one that was selected in the UI (if any).

    Parameters
    • observer any

    open

    open a bluetooth device.

    Parameters
    • deviceOrId (Device | string)

    disconnect

    globally disconnect a bluetooth device by its id.

    Parameters
    • id any

    Install

    npm i @ledgerhq/hw-transport-web-ble

    DownloadsWeekly Downloads

    2,749

    Version

    6.11.2

    License

    Apache-2.0

    Unpacked Size

    94.6 kB

    Total Files

    31

    Last publish

    Collaborators

    • jelbaz-ledger
    • mortalkastor
    • achabrolin-ledger
    • gre
    • btchip
    • meriadec
    • flocks
    • amougel
    • juan-cortes
    • val_pinkman
    • iammorrow
    • phenry-ledger
    • jdecussy-ledger
    • lfbarreto
    • junsugiura
    • hzheng_ledger
    • machard-ledger
    • glethuillier_ledger