Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Latest commit

 

History

History

hw-transport-node-ble

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Github, Ledger Devs Slack

@ledgerhq/hw-transport-node-ble

Ledger Hardware Wallet Bluetooth BLE transport for Node.js (noble)

yarn add @ledgerhq/hw-transport-node-ble

API

Table of Contents

BluetoothTransport

Extends Transport

TransportNodeBle bluetooth BLE implementation

Parameters

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

Examples

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

exchange

communicate with a BLE transport

Parameters

Returns Promise<Buffer>

isSupported

Returns Promise<boolean>

availability

listen

Scan for bluetooth Ledger devices

Parameters
  • observer any

open

Open a BLE transport

Parameters
  • deviceOrId any

disconnect

Globally disconnect a BLE device by its ID

Parameters
  • id any