escvpnet 0.1.3

ESC/VP.net protocol client library
Documentation

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");