openrgb 0.1.2

OpenRGB SDK client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::error::Error;

use openrgb::OpenRGB;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {

    // connect to local server
    let client = OpenRGB::connect_to(("localhost", 6742)).await?;

    // set client name
    client.set_name("my client").await?;

    // print protocol version
    println!("connected using protocol version {}", client.get_protocol_version());

    Ok(())
}