dvbble
v1.0.1
Published
Bluetooth Low Energy library for DVBuddy devices
Downloads
11
Maintainers
Readme
DVBble
A TypeScript library for communicating with DVBuddy devices via Bluetooth Low Energy (BLE).
Installation
npm install dvbbleUsage
import { DVBDeviceBLE } from 'dvbble';
// Create a new device instance
const device = new DVBDeviceBLE();
// Connect to a device
await device.connect();
// Register the device
await device.register();
// Upload firmware
const firmwareFile = new File([/* firmware data */], 'firmware.bin');
await device.uploadFirmware(firmwareFile);
// Disconnect when done
await device.disconnect();Features
- Device connection and disconnection
- Device registration
- Firmware upload
- Message handling
- Error handling
API
DVBDeviceBLE
The main class for interacting with DVBuddy devices.
Methods
connect(): Connect to a DVBuddy devicedisconnect(): Disconnect from the deviceregister(): Register the deviceuploadFirmware(file: File): Upload firmware to the device
License
MIT
