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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4099039d4ff7879856becacab915f6be17169ede0b4a94b9278ba3e0a4ee8e51
MD5 ce5411e6ad32379f5bee5473b5b4e142
BLAKE2b-256 70f674fbd20ca17546efd2ca7a5a3129667dd81f89fb626abc4d99e19780aef1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aae4f4a0c2da37ca0a8acb6cc5906ad196c69d9c49017c8071ed697966c87a21
MD5 21a5f9c6d61d3a0ef320b6a3a98b7d2d
BLAKE2b-256 7ef4d6354347afcfda0f8b6082f68e0b7637c9e82bfd0de829fe7469e1f5db3e

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