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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f94d5f7d46666869cb0211d30d406d809eccaffee350437c1cd3493ef20c6b10
MD5 9d1efc07b8c06adbe94b5094d0006268
BLAKE2b-256 5aa590807d6078a94f827dbb88e2d925af1e0c112178deab565b0d8de02ad584

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sok_ble-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ccc2334604e6cafe3081545fa6e27414bbbacc412cd1732fe5ef8d952e6c6c
MD5 d4965f2c89cec37f411d1cb960c8c6a5
BLAKE2b-256 02f7b237cf38c38005f8b59f70971a1ce2be4ad481d3e9cadd06a2de2ac3319d

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