Exemple #1
0
        static void PublishSomething(string topic, string msg)
        {
            Console.WriteLine("Publishing on " + topic + ": " + msg + "\n");
            _client.Publish(topic, msg, QoS.AtLeastOnce, false);

            Console.WriteLine("Publishing to alias test2: " + msg + "\n");
            _client.PublishToAlias("test2", msg, QoS.AtLeastOnce, false);
        }