PublishAsync does not fail when MQTTnet server is not running
PublishAsync does not fail when MQTTnet server is not running I am using MQTTNet, a .NET library for MQTT based communication from below link https://github.com/chkr1011/MQTTnet I am using managed MQTT Client from below link managed MQTT Client https://github.com/chkr1011/MQTTnet/wiki/ManagedClient I have below code to publish messages to MQTT server . publish MQTT server var messagePayload = new MqttApplicationMessageBuilder() .WithTopic("Topic1") .WithPayload(message) .WithExactlyOnceQoS() .WithRetainFlag() .Build(); try { await mqttClient.PublishAsync(messagePayload); } catch (Exception ex) { //Why I am not getting exception? } 1 Answer 1 ...