set_channel/set-channel.rs
1extern crate eosc_rs;
2
3use std::net::{IpAddr, Ipv4Addr};
4
5use eosc_rs::eos_desk::EosDesk;
6
7fn main() {
8 let desk: EosDesk = EosDesk::new(
9 (IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 8001),
10 (IpAddr::V4(Ipv4Addr::new(192, 168, 122, 95)), 8000),
11 )
12 .expect("Failed to init desk");
13
14 desk.channel(31).at(50).expect("failed to set 31 to 50");
15}