Skip to content
HansM edited this page Jun 13, 2022 · 14 revisions

Welcome to the MQTTnet wiki!

This Wiki contains a documentation for this library only (From version 4 on, only the examples are relevant, not the Wiki anymore). For more information about the MQTT standard, best practices and examples please visit https://www.hivemq.com/blog/how-to-get-started-with-mqtt.

For MQTT protocol debugging and analytics the MQTT Client "MQTTnetApp" (https://github.com/chkr1011/MQTTnetApp) can be used to inspect messages, payloads etc.

A short reference on MQTT topics can be found under https://github.com/chkr1011/MQTTnet/wiki/MQTT-topics, too.

FAQ

How to use this library?

The Wiki only describes meta topics. Code samples including descriptions are available in the Samples directory in the repository. They can also be executed in a console.

My connection remains "Connected" (IsConnected=true) but the socket is already disconnected or the network connection is broken/disabled.

This is by design. See post https://github.com/xamarin/xamarin-android/issues/1347#issuecomment-369729481. So switch over to at least QoS 1. Then the client can use a timeout and disconnect when to response is received.

I have troubles connecting when using TLS.

Please check the following links.

Clone this wiki locally