An open API service indexing awesome lists of open source software.

https://github.com/lvillis/aqara-sdk-rust

Aqara SDK for Rust.
https://github.com/lvillis/aqara-sdk-rust

aqara iot rust sdk

Last synced: 9 months ago
JSON representation

Aqara SDK for Rust.

Awesome Lists containing this project

README

          

Table of Contents↗️

aqara-sdk-rust

Aqara SDK for Rust.



crates.io version


crates.io version


build status


say thanks

---

## Features

- [ ] Location management interface
- [ ] Equipment distribution network interface
- [ ] Device management interface
- [ ] Device resource interface
- [ ] Infrared device management interface
- [ ] Device firmware management interface
- [ ] Linkage configuration query interface
- [ ] Automation management interface
- [ ] Scene management interface
- [ ] Condition set management interface
- [x] Voice control interface

## Usage

```toml
[dependencies]
aqara = { version="0.1.0", default-features = false, features = ["singapore"] }
```

```rust
#[tokio::main]
async fn main() {
let config = AqaraConfig {
access_token: "your_access_token".to_string(),
app_id: "your_app_id".to_string(),
key_id: "your_key_id".to_string(),
app_key: "your_app_key".to_string(),
};

let client = AqaraClient::new(config);
let response = client.query_position_info(Some("parent_position_id"), Some(1), Some(30)).await;

match response {
Ok(data) => println!("Response: {}", data),
Err(e) => eprintln!("Error: {}", e),
}
}
```