-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb5b88
commit c15b134
Showing
2 changed files
with
1 addition
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,2 @@ | ||
//! WebOS TV websocket client allowing to communicate in request-response manner. | ||
//! | ||
//! # Example | ||
//! | ||
//! Create client and send command | ||
//! ```rust | ||
//! use lg_webos_client::client::*; | ||
//! use lg_webos_client::command::Command; | ||
//! | ||
//! #[tokio::main] | ||
//! async fn main() { | ||
//! env_logger::init(); | ||
//! // Note: We must specify the ws protocol, and if we do not have the key, we must use a blank str. | ||
//! let config = WebOsClientConfig::new("ws://192.168.1.62:3000/", None); | ||
//! | ||
//! let client = WebosClient::new(config).await.unwrap(); | ||
//! let resp = client.send_command(Command::GetChannelList).await.unwrap(); | ||
//! println!("Got response {:?}", resp.payload); | ||
//! } | ||
//! ``` | ||
pub mod client; | ||
pub mod command; |