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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sok_ble-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 5ec8cabc48261ef540d4563c800afb1ce11c81657a8448ae677230a9b5be7010
MD5 f03233fa045b0d4ba67305ab24a5d750
BLAKE2b-256 f9bad3cec8d9f5073f52851d114625ecc9c17214d68ef4948dd0834bfcc89e25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sok_ble-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8e74fbfdcdffcc25b8e558a779b7d91a658f24d4de2461dbc20198ae9921e874
MD5 9c685402a38dc69eda462a057c6a1c64
BLAKE2b-256 53b9405e8c2157dd12b71d67eba348cf1c1381d29f582a6100e8c9b9f3640aa6

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