phoenix-rec 0.2.15

A simple recording and sending library for recorded data on the ev3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use phoenix_rec::client::create_client;
use phoenix_rec::debug;

fn main() {
    debug!("Debugging client.rs");
    let args = std::env::args().collect::<Vec<String>>();
    // if args[1] is not none we take that as the server_name else localhost
    let default = "localhost".to_string();
    let (_main_sender, thread_receiver) = std::sync::mpsc::channel();
    let (thread_sender, _main_receiver) = std::sync::mpsc::channel();
    create_client(
        args.get(1).unwrap_or(&default).to_string(),
        thread_receiver,
        thread_sender,
    );
    loop {}
}