SimRacing.Telemetry.Receiver.F1.23 1.0.1

dotnet add package SimRacing.Telemetry.Receiver.F1.23 --version 1.0.1
NuGet\Install-Package SimRacing.Telemetry.Receiver.F1.23 -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimRacing.Telemetry.Receiver.F1.23" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimRacing.Telemetry.Receiver.F1.23 --version 1.0.1
#r "nuget: SimRacing.Telemetry.Receiver.F1.23, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimRacing.Telemetry.Receiver.F1.23 as a Cake Addin
#addin nuget:?package=SimRacing.Telemetry.Receiver.F1.23&version=1.0.1

// Install SimRacing.Telemetry.Receiver.F1.23 as a Cake Tool
#tool nuget:?package=SimRacing.Telemetry.Receiver.F1.23&version=1.0.1

SimRacing.Telemetry.Receiver.F1.23

Note: This is a c# class to receive telemetry data. It is not an application and does not include a user interface. Sample project coming soon. Note: Work in progress. Further documentation coming.

The F1_23_Telemetry_Receiver class is a UDP packet receiver specifically designed to work with the 2022 Formula 1 data streams. It provides an event-driven architecture, enabling users to subscribe to different kinds of packet data types (like Car Status, Lap Data, Session Data etc.) and handle them according to their specific needs. The class supports a default or user-specified IP address and port for listening to incoming packets. It's useful for developers aiming to integrate with such games or build applications needing real-time in-game data. Usage

First, you create an instance of the F1_2022_UDP_Receiver class. Use the default constructor to listen for any IP and the game's default port.

F1_23_Telemetry_Receiver receiver = new F1_23_Telemetry_Receiver();

or specify the IP address and port

F1_23_Telemetry_Receiver receiver = new F1_23_Telemetry_Receiver("192.168.1.43", 20777);

Then, subscribe to the events you are interested in.

receiver.CarStatusDataPacketReceived += (sender, e) => {
    // Handle the car status data packet
    PacketCarStatusData carStatus = e.PacketCarStatusData;
    // your code here
};

receiver.LapDataPacketReceived += (sender, e) => {
    // Handle the lap data packet
    PacketLapData lapData = e.PacketLapData;
    // your code here
};

Repeat for other packet types as necessary. When you are ready to start receiving packets, call the StartReceiving method:

receiver.StartReceiving();

This will start a background task that continuously listens for incoming packets and raises the appropriate events when packets of the subscribed types are received.

Finally, when you are done receiving packets, call the StopReceiving method to stop the background task:

receiver.StopReceiving();

This usage pattern enables you to process different kinds of data packets in different ways, according to your specific application's needs, while the F1_2022_UDP_Receiver class takes care of the low-level details of receiving and parsing the packets.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 339 6/18/2023

Fixed various issues with moving from F1 22. Implemented missing packet types.