Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 525 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 525 Bytes

WeatherFlowUdpListener

Listen to WeatherFlow Tempest UDP Port

Example usage

await WeatherFlowUdpListener.WFListener
    .Create()
    .OnReceiveObservationAirMessage(msg =>
    {
        Console.WriteLine($"Air-Temperature: {msg.AirTemperature}");
    })
    .OnReceiveObservationSkyMessage(msg =>
    {
        Console.WriteLine($"UV-Index: {msg.UV}");
    })
    .OnReceiveRapidWindMessage(msg =>
    {
        Console.WriteLine($"Wind-Speed: {msg.WindSpeed}");
    })
    .ListenAsync(cancellationToken);