JSPM

@danielgjackson/ble-uart

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q29226F
  • License BSD-2-Clause

Bluetooth BLE Nordic UART Client (Node.js, using noble)

Package Exports

  • @danielgjackson/ble-uart

Readme

Bluetooth BLE Nordic UART Client

BLE UART client using noble.

Example code:

import BleUart from '@danielgjackson/ble-uart'

async function demo(address) {
    const bleUart = await BleUart.scanForBleUart(address)
    bleUart.addLineReader((line) => {
        console.log(`Received: ${line}`)
        //bleUart.write('response\n')
    })
    await bleUart.connect()
    bleUart.write('connected\n')
}

demo('A1:B2:C3:D4:E5:F6')