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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sok_ble-0.1.9.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.9.tar.gz
Algorithm Hash digest
SHA256 fd386ab0649181bb8c107e5255cc7751c2104a0fdec74f5342dbf5f16b228857
MD5 ef53de897cc313c233223889cdddb1e4
BLAKE2b-256 12887ce14b0909c6b6645100fd0fc808e120ff7a2687ce281cf32395eb146da3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sok_ble-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 217c54203e32aae8525ba2c2e32b3afe0151ce64556c96b8b38a553f71e6e315
MD5 a33dc56b29872bc21ee151e5c462a90e
BLAKE2b-256 93a6fa8c5b32b749c42e403428941dfcbcc0c0b82ac43de565f4ac075c4937a9

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