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.0.tar.gz (6.4 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sok_ble-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for sok_ble-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ed2f6cdec04ee6458c84a5cac2f4d5ceefc49593451f5592387367c54ba5ec7
MD5 24363a2515691bc8e2addb3bd06c8e9e
BLAKE2b-256 fd1d1487d95501d0ca55f3447b31500c6c61b2b96e797703322f0c83e8b18bc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sok_ble-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for sok_ble-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5213d8f33a5cd0efd4d7ebdbb726a5052600f446d1db38c838d7174a1d7b8748
MD5 03e53233297a15ecc80e08e5466ae97f
BLAKE2b-256 fbe0ea788b87415724811c7aba5fc3b0fced3d1d3f8948d869dc10327263ba5f

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