update IotSharpClient

This commit is contained in:
2248356998 qq.com
2023-04-03 20:16:38 +08:00
parent 74cf82a1c7
commit 97d6dbaa6c

View File

@@ -42,8 +42,6 @@ namespace ThingsGateway.Mqtt
}
}
[DeviceProperty("网关ID", "")] public string DeviceId { get; set; } = string.Empty;
[DeviceProperty("Accesstoken", "")] public string Accesstoken { get; set; } = "Accesstoken";
[DeviceProperty("IP", "")] public string IP { get; set; } = "127.0.0.1";
[DeviceProperty("端口", "")] public int Port { get; set; } = 1883;
@@ -98,7 +96,7 @@ namespace ThingsGateway.Mqtt
.WithTopicFilter(
f =>
{
f.WithTopic($"devices/{DeviceId}/rpc/request/+/+");//RPC控制请求需要订阅
f.WithTopic($"devices/+/rpc/request/+/+");//RPC控制请求需要订阅
})
.Build();