Skip to content

A Python library for parsing Bluetooth Low Energy (BLE) data from SOK batteries.

License

Notifications You must be signed in to change notification settings

IAmTheMitchell/sok-ble

Repository files navigation

SOK BLE

Tests Release

Python library for interacting with SOK Bluetooth-enabled batteries.

Quick Start

import asyncio
from bleak import BleakScanner
from sok_ble.sok_bluetooth_device import SokBluetoothDevice


async def main() -> None:
    device = await BleakScanner.find_device_by_address("AA:BB:CC:DD:EE:FF")
    sok = SokBluetoothDevice(device)
    await sok.async_update()
    print("Voltage:", sok.voltage)


asyncio.run(main())

References

@zuccaro's comment Bluetooth-Devices/inkbird-ble

About

A Python library for parsing Bluetooth Low Energy (BLE) data from SOK batteries.

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages