c# mqtt client example
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using uPLibrary.Networking.M2Mqtt; using uPLibrary.Networking.M2Mqtt.Messages; namespace MQTTTest { public partial class Form1 : Form { MqttClient client; public Form1() { InitializeComponent(); //client = new MqttClient("broker.hivemq.com"); client = new MqttClient("192.168.0.83"); byte code = client.Connect(Guid.NewGuid().ToString()); client.ProtocolVersion = MqttProtocolVersion.Version_3_1; ...