Skip to main content

SOK BLE battery interface library

Project description

SOK BLE

CI

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sok_ble-0.1.5.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sok_ble-0.1.5-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sok_ble-0.1.5.tar.gz.

File metadata

  • Download URL: sok_ble-0.1.5.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for sok_ble-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1aa244a02cb33d086daa51c76b70e93328d2abf761a14ff1f44dc14a4dc166a0
MD5 da92c7f48cb7c1729cb13e1e02c990a9
BLAKE2b-256 60a55a0df76de104a151502822d740d2e658478f5648dbda49f7209bdbced92f

See more details on using hashes here.

File details

Details for the file sok_ble-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: sok_ble-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for sok_ble-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 484c5df20c107805acf3fea8356c3ed572d66c333ff389320df6b0de506ecc98
MD5 7cd2486c7ba0464f78f4b07ea06617de
BLAKE2b-256 760439203f21dbedb60caadbb622d6e2800dd9efa2ba309b6d6b989e7d15b37a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page