LG webos client

Build Status

Simple LG webOS client written purerly in Rust. Inspired by lgtv.js

Supported commands

Example

Add to Cargo.toml

toml [dependencies] lg-webos-client = "0.2.0" tokio = { version = "1.2.0", default-features = false, features = ["full"] }

And then write code

```rust use lgwebosclient::client::WebosClient; use lgwebosclient::command::Command;

[tokio::main]

async fn main() { envlogger::init(); let mut client = WebosClient::new("ws://192.168.1.62:3000/").await.unwrap(); let resp = client.sendcommand(Command::GetChannelList).await.unwrap(); println!("Got response {:?}", resp.payload); } ```

The code above simply connects to tv in local network and after successfull registration lists all channels.