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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8118be24c0e4447716a98035908c864acd9140129f0b7385930da45b16ff8d0b
MD5 6ac238b71c9cb0c77faada4fd681e584
BLAKE2b-256 c467d9f2a97ef2cd11023719d7a531cff13df830f77db532de192739905ad396

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6898089d52c52958b46e6256ecffc688c989d262e0665b46871926d18f0c3187
MD5 44c08812dd4529256aae7f4c5e3e7c70
BLAKE2b-256 01dfdc18b0ed8c9596bb8708a053c6c47816a1b40bb0dad170780d71cec11bf0

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