Exemple #1
0
        private void OnDisconnected(object sender, MqttClientDisconnectedEventArgs e)
        {
            _traceMessages.Enqueue(new MqttNetLogMessage("", DateTime.Now, -1,
                                                         "", MqttNetLogLevel.Info, "! DISCONNECTED EVENT FIRED", null));

            Task.Run(UpdateLogAsync);
        }
 private void OnDisconnected(object sender, MqttClientDisconnectedEventArgs eventArgs)
 {
     Disconnected?.Invoke(this, eventArgs);
 }
Exemple #3
0
 private void _mqttClient_Disconnected(object sender, MQTTnet.Client.MqttClientDisconnectedEventArgs e)
 {
     _logger.LogDebug($"_mqttClient_Disconnected: {e.Exception?.Message}");
 }