Crates.io | switchbot |
lib.rs | switchbot |
version | 0.1.2 |
source | src |
created_at | 2023-04-10 02:29:03.121982 |
updated_at | 2023-04-10 03:31:31.06946 |
description | A library for interacting with SwitchBot devices |
homepage | https://github.com/steveatinfincia/switchbot_rs |
repository | https://github.com/steveatinfincia/switchbot_rs.git |
max_upload_size | |
id | 834676 |
size | 17,282 |
A library for interacting with SwitchBot devices via Bluetooth LE.
The code is currently able to decode Bluetooth LE service data packets for the bot, meter/plus, humidifier, and plug mini devices.
There are tests for a few specific cases, written using manually captured data from real SwitchBot devices.
The constant
module contains a few useful values, but the process of
connecting to a Bluetooth LE device is not specific to SwitchBot devices,
so this crate is solely intended for processing the data and does not
contain code for connecting to actual devices.
Determining which device to connect to and handling those connections is the responsibility of another crate, you can see an example of how to do that in ble_bridge_rs.