Expand description
Async Rust client for controlling LG TVs over IP Control.
§Example
use lgtv_ip_control::{Apps, LGTV};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut tv = LGTV::connect_tcp(
"IP_ADDRESS",
"MAC_ADDRESS",
Some("KEY_CODE"),
)
.await?;
tv.launch_app(Apps::Youtube).await?;
Ok(())
}Re-exports§
pub use constants::types::AppDetails;pub use constants::types::Apps;pub use constants::types::ConnectionType;pub use constants::types::PowerStates;pub use lg_tv::LGTV;