nt 3.0.0

A NetworkTables revision 3 library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use nt::{EntryData, EntryValue, NetworkTables};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = NetworkTables::connect("127.0.0.1:1735", "nt-rs").await?;

    client.create_entry(EntryData::new(
        "newEntry".to_string(),
        0,
        EntryValue::Double(5.0),
    ));

    for (id, value) in client.entries() {
        println!("{} ==> {:?}", id, value);
    }

    Ok(())
}