f1-telemetry-client

Crates.iof1-telemetry-client
lib.rsf1-telemetry-client
version0.1.1
sourcesrc
created_at2020-10-28 11:36:10.097983
updated_at2020-10-28 14:54:40.191749
descriptionTelemetry client for F1 game by Codemasters
homepage
repository
max_upload_size
id306298
size102,911
Aldi Perdana (aldidana)

documentation

README

f1-telemetry-client

🏎️ Telemetry client for F1 game by Codemasters 🏎️

Example

use f1_telemetry_client::{Telemetry, packet::Packet};
use async_std::task;

fn main() {
    task::block_on(async {
        let telemetry = Telemetry::new("192.168.1.11", 20777).await.unwrap();
        
        loop {
            match telemetry.next().await {
                Ok(packet) => {
                    match packet {
                        Packet::F12020(result) => {
                            println!("Result {:?}", result);
                        }
                        _ => unimplemented!(),
                    }
                },
                Err(e) => {
                    eprintln!("Error {}", e)
                }
            }
        }
    })
}

Enable Telemetry Setting

web-checkssl

UDP Specifications

Credits for struct

License

MIT @Aldi Priya Perdana

Commit count: 0

cargo fmt