MQTTnet.Rx.Server
3.1.0
dotnet add package MQTTnet.Rx.Server --version 3.1.0
NuGet\Install-Package MQTTnet.Rx.Server -Version 3.1.0
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="MQTTnet.Rx.Server" Version="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet.Rx.Server --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MQTTnet.Rx.Server, 3.1.0"
#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 MQTTnet.Rx.Server as a Cake Addin #addin nuget:?package=MQTTnet.Rx.Server&version=3.1.0 // Install MQTTnet.Rx.Server as a Cake Tool #tool nuget:?package=MQTTnet.Rx.Server&version=3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MQTTnet.Rx.Client
MQTTnet.Rx.ABPlc
MQTTnet.Rx.Modbus
MQTTnet.Rx.S7Plc
MQTTnet.Rx.SerialPort
MQTTnet.Rx.TwinCAT
<p align="left"> <a href="https://github.com/ChrisPulman/MQTTnet.Rx"> <img alt="MQTTnet.Rx" src="https://github.com/ChrisPulman/MQTTnet.Rx/blob/main/Images/logo.png" width="200"/> </a> </p>
MQTTnet.Rx.Client
A Reactive Client for MQTTnet Broker
NOTE: ManagedClient support has been removed from the MQTTnet.Rx.Client library. This is due to the fact that the ManagedClient is no longer included in the MQTTnet V5 library.
We now have a Reactive implimentaion through IResilientClient that we aim to have feature parity with the ManagedClient.
The ResilientClient is a wrapper around the MqttClient that will automatically reconnect to the broker if the connection is lost.
Create a Resilient Mqtt Client to Publish an Observable stream
Create.ResilientMqttClient()
.WithResilientClientOptions(a =>
a.WithAutoReconnectDelay(TimeSpan.FromSeconds(5))
.WithClientOptions(c =>
c.WithTcpServer("localhost", 9000)))
.PublishMessage(_message)
.Subscribe(r => Console.WriteLine($"{r.ReasonCode} [{r.PacketIdentifier}]"));
Create a Resilient Mqtt Client to Subscribe to a Topic
Create.ResilientMqttClient()
.WithResilientClientOptions(a =>
a.WithAutoReconnectDelay(TimeSpan.FromSeconds(5))
.WithClientOptions(c =>
c.WithTcpServer("localhost", 9000)))
.SubscribeToTopic("FromMilliseconds")
.Subscribe(r => Console.WriteLine($"{r.ReasonCode} [{r.ApplicationMessage.Topic}] value : {r.ApplicationMessage.ConvertPayloadToString()}"));
Create a Mqtt Client to Publish an Observable stream
Create.MqttClient()
.WithClientOptions(a => a.WithTcpServer("localhost", 9000))
.PublishMessage(_message)
.Subscribe(r => Console.WriteLine($"{r.ReasonCode} [{r.PacketIdentifier}]"));
Create a Mqtt Client to Subscribe to a Topic
Create.MqttClient()
.WithClientOptions(a => a.WithTcpServer("localhost", 9000))
.SubscribeToTopic("FromMilliseconds")
.Subscribe(r => Console.WriteLine($"{r.ReasonCode} [{r.ApplicationMessage.Topic}] value : {r.ApplicationMessage.ConvertPayloadToString()}"));
MQTTnet.Rx.Server
A Reactive Server for MQTTnet Broker
Create a Mqtt Server
Create.MqttServer(builder =>
builder
.WithDefaultEndpointPort(2883)
.WithDefaultEndpoint()
.Build())
.Subscribe();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MQTTnet.Server (>= 5.0.1.1416)
- Newtonsoft.Json (>= 13.0.3)
- System.Reactive (>= 6.0.1)
-
net9.0
- MQTTnet.Server (>= 5.0.1.1416)
- Newtonsoft.Json (>= 13.0.3)
- System.Reactive (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Compatability with Net 8 / 9