You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/docs/intro.md
+24-6
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,33 @@ sidebar_position: 10
4
4
5
5
# The MQTT Client
6
6
7
-
***Easy-to-Install**: Available as a Nuget package.
8
-
***Opensource**: No blackbox code. Only trusted, tested and reviewed opensource code.
7
+
### 💽 Installation & Compatibility
8
+
***Easy-to-Install**: Available as a [Nuget package](https://www.nuget.org/packages/HiveMQtt).
9
+
***Globally Compatible**: Built to be a fully compliant MQTT 5.0 client compatible with all modern MQTT brokers.
10
+
***Multi-Targeted**: Supports .NET 6.0, 7.0 & 8.0
11
+
12
+
### 🚀 Features
13
+
***MQTT 5.0 Support**: Fully compliant with the latest [MQTT 5.0 specification](https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html), ensuring compatibility with modern MQTT brokers.
14
+
***Back Pressure Management**: Automatically manages back pressure to prevent overwhelming the broker (or client), ensuring reliable and efficient communication.
15
+
***Asynchronous Design**: Designed for high-performance and low-latency communication, allowing your application to process multiple messages concurrently.
16
+
***Extensive Event System**: Hook into all parts of the client down to the packet level with [built in events](https://hivemq.github.io/hivemq-mqtt-client-dotnet/docs/events).
17
+
***Global and Per-Subscription Message Handling**: Use multiple targeted handlers for more targeted and specialized message processing.
18
+
***Full Last Will & Testament Support**: Reliable message delivery and notification of client disconnections.
19
+
***Secure Client Identification**: Full support for [X.509 client certificates](https://hivemq.github.io/hivemq-mqtt-client-dotnet/docs/how-to/client-certificates) and TLS connections.
20
+
***Observable**: Configure up to [TRACE level logging](https://hivemq.github.io/hivemq-mqtt-client-dotnet/docs/how-to/debug) for package internals.
21
+
***Fast**: Optimized & benchmarked. See the benchmark results [here](https://github.com/hivemq/hivemq-mqtt-client-dotnet/blob/main/Benchmarks/ClientBenchmarkApp/README.md).
22
+
23
+
### 🏝️ Ease of Use
9
24
***Easy to Use**: Smart defaults, excellent interfaces and intelligent automation makes implementing a breeze.
***Extensive Event System**: Hook into all parts of the client down to the packet level with [built in events](https://github.com/hivemq/hivemq-mqtt-client-dotnet/blob/main/Documentation/Events.md).
12
-
***Globally Compatible**: Built to be a fully compliant client compatible with all reputable MQTT brokers.
25
+
***Easy Integration**: Simple and intuitive API makes it easy to integrate with your .NET applications.
26
+
27
+
### 🛟 Maintenance and Support
13
28
***Actively Maintained**: Built by the MQTT professionals that built HiveMQ (and do this for a living).
14
-
***Extensively Documented**: What good is it without excellent documentation?
15
29
***Supported**: Contact us anytime in [this repository](https://github.com/hivemq/hivemq-mqtt-client-dotnet/issues), in the [community forum](https://community.hivemq.com) or [through support](https://www.hivemq.com/support/).
30
+
***Extensively Documented**: What good is it without [excellent documentation](https://hivemq.github.io/hivemq-mqtt-client-dotnet/)?
31
+
32
+
### 🐧 Opensource
33
+
***Opensource**: No blackbox code. Only trusted, tested and reviewed opensource code.
The HiveMQtt MQTT library provides an automatic reconnect functionality that allows the client to automatically reconnect to the MQTT broker in case of a disconnection. This feature is disabled by default.
4
+
5
+
# Example
6
+
7
+
```csharp
8
+
varoptions=newHiveMQClientOptionsBuilder()
9
+
.WithAutomaticReconnect(true)
10
+
.Build();
11
+
12
+
// Create a new client with the configured options
13
+
varclient=newHiveMQttClient(options);
14
+
```
15
+
16
+
# Backoff Strategy
17
+
18
+
The automatic reconnect functionality uses a backoff strategy to attempt to reconnect to the MQTT broker periodically until success. The backoff strategy starts with a delay of 5 seconds and doubles the delay with each failed attempt, up to a maximum of 1 minute.
19
+
20
+
# Maximum Attempts
21
+
22
+
The backoff strategy will attempt to reconnect a maximum of once per minute. The client will attempt to reconnect indefinitely until successful.
23
+
24
+
# Summary
25
+
26
+
The automatic reconnect functionality a convenient way to handle disconnections from the MQTT broker. Users can also use the `OnConnect` event handler to add custom logic when the client successfully reconnects to the MQTT broker.
Sets whether the client should automatically reconnect when the connection is lost or dropped.
10
+
11
+
**Description:** This flag indicates whether the automatic reconnect system is enabled. Reconnection attempts are made periodically with a backing off strategy that maxes out at once per minute until reconnected.
0 commit comments