diff --git a/Ava.MqttTool/Views/ClientView.axaml.cs b/Ava.MqttTool/Views/ClientView.axaml.cs index d98528e..8710dec 100644 --- a/Ava.MqttTool/Views/ClientView.axaml.cs +++ b/Ava.MqttTool/Views/ClientView.axaml.cs @@ -41,6 +41,7 @@ public ClientView() { var str = args.ApplicationMessage.ConvertPayloadToString(); Log($"收到消息 {str}"); + Log($" Qos: {args.ApplicationMessage.QualityOfServiceLevel.ToString()}"); return Task.CompletedTask; }; } diff --git a/Ava.MqttTool/Views/ServerView.axaml.cs b/Ava.MqttTool/Views/ServerView.axaml.cs index 787e68b..33840ee 100644 --- a/Ava.MqttTool/Views/ServerView.axaml.cs +++ b/Ava.MqttTool/Views/ServerView.axaml.cs @@ -78,6 +78,7 @@ private void Start_OnClick(object? sender, RoutedEventArgs e) _mqttServer.InterceptingPublishAsync += args => { Log($"收到客户端{args.ClientId}的消息: {args.ApplicationMessage.ConvertPayloadToString()}"); + Log($" Qos: {args.ApplicationMessage.QualityOfServiceLevel.ToString()}"); return Task.CompletedTask; }; _mqttServer.ClientSubscribedTopicAsync += args =>