Skip to content

Commit

Permalink
fix: add qos
Browse files Browse the repository at this point in the history
  • Loading branch information
wmchuang committed Jul 28, 2023
1 parent d4b8f73 commit 14fb94d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ava.MqttTool/Views/ClientView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public ClientView()
{
var str = args.ApplicationMessage.ConvertPayloadToString();
Log($"收到消息 {str}");
Log($" Qos: {args.ApplicationMessage.QualityOfServiceLevel.ToString()}");
return Task.CompletedTask;
};
}
Expand Down
1 change: 1 addition & 0 deletions Ava.MqttTool/Views/ServerView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 14fb94d

Please sign in to comment.