Choose the telemetry data you want to record from the F1 video game.
Below is an example of how you would use this library.
```rust
use f1gametelemetry::TelemetryBuilder; use serde_json::Value;
async fn main() { let endpoint = "127.0.0.1:30500"; let mut tel = TelemetryBuilder::new(endpoint.toowned()) .addeventsdata() .build(); let (tx, mut rx) = tokio::sync::mpsc::unboundedchannel(); tel.record(tx).await; while let Some(val) = rx.recv().await { let val: Value = serdejson::fromstr(&val).unwrap(); println!("RECEIVED: {}", val); } }
```
This library is licensed under the MIT License
Please check out my github! Thank you!