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())

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.1.tar.gz (7.0 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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2bf7c283321935606bf691174a5c00b31cae3473b2dd39f0b637231dc5da759
MD5 645667a0e2664188b76e99b507346165
BLAKE2b-256 db198b00892ec1af8cdcce2b55e56a41c879f2ce7229354b52ce78d7637c6cac

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49c60bcd8202452d41ae4613cb499742eba21ad2b42aea9ddf4f0ce7b4e1baff
MD5 8265571320463d3d93501811cad14e29
BLAKE2b-256 2ff2e10c82498ce88bb93317e06bf5807ce6c56d5b11f3f56dbe5dbc4c6c03db

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