Skip to content

Instantly share code, notes, and snippets.

@hwinkelmann
hwinkelmann / liontron.js
Last active March 17, 2025 11:55
Read data from a LIONTRON battery
// This is a POC that reads data from a Jiabaida BMS, as it is integrated
// in the Liontron battery that I have.
// It's basically the same information as it is displayed in the buggy app that
// comes with it.
const {createBluetooth} = require('node-ble')
const {bluetooth, destroy} = createBluetooth()
// BLE adress of the battery - this will be different from battery to battery
const DEVICE_ADRESS = "A4:C1:38:C5:96:C9";