Skip to main content

SOK BLE battery interface library

Project description

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

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.9b2.tar.gz (47.7 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.9b2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file sok_ble-0.1.9b2.tar.gz.

File metadata

  • Download URL: sok_ble-0.1.9b2.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sok_ble-0.1.9b2.tar.gz
Algorithm Hash digest
SHA256 7fa895a3638f95d2a19c717c652448e0f7a710e9a00f734e0e85489e373e025e
MD5 d02e2eb4d2408fa514e55eb4f9f57f7f
BLAKE2b-256 cbb142379fc6efa9f7762b47a271f464fa214ec91d91b291a7d1335c6dd20f61

See more details on using hashes here.

File details

Details for the file sok_ble-0.1.9b2-py3-none-any.whl.

File metadata

  • Download URL: sok_ble-0.1.9b2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sok_ble-0.1.9b2-py3-none-any.whl
Algorithm Hash digest
SHA256 6575faa5541a5be1f49c9e3a312990c00ded1a6fd2ff0f39c8bb68991c18efa9
MD5 e79f200bb867e2bf583b7d4cbb9f3450
BLAKE2b-256 87691220abe85904b11cb8d8e7265999bc982d0c0dbe6e9b477c61a0b62cb288

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