escvpnet

Crates.ioescvpnet
lib.rsescvpnet
version0.3.3
sourcesrc
created_at2022-11-22 17:11:25.102973
updated_at2023-05-11 17:11:03.82617
descriptionESC/VP.net protocol library
homepage
repositoryhttps://github.com/telegicloetrocongelateur/escvpnet
max_upload_size
id721011
size27,974
Télégicloétrocongélateur (telegicloetrocongelateur)

documentation

README

escvpnet

escvpnet is a Rust library for the ESC/VP.net protocol (EPson Control Video Projector)

Examples

Discovering ESC/VP.net hosts

use std::time::Duration;

let addrs = escvpnet::discover("0.0.0.0:3629", "255.255.255.255:3629", Some(Duration::from_millis(100)));

Creating ESC/VP.net client and sending commands

use escvpnet::{Client, commands::LAMP, Command};

let mut client = Client::connect("192.168.0.1:3629").expect("Failed to connect to projector");
let command = Command::Get { command: LAMP };
client.send(command).expect("Failed to send command");
Commit count: 33

cargo fmt