完成Mqtt服务器添加功能

This commit is contained in:
2025-09-06 12:03:39 +08:00
parent 08f9de137e
commit 52f76e2377
18 changed files with 417 additions and 271 deletions

View File

@@ -19,9 +19,9 @@ public class DbMqttServer
public string ServerName { get; set; }
/// <summary>
/// MQTT代理地址
/// MQTT服务器URL
/// </summary>
public string BrokerAddress { get; set; }
public string ServerUrl { get; set; }
/// <summary>
/// 端口号
@@ -66,15 +66,18 @@ public class DbMqttServer
/// <summary>
/// 连接时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ConnectedAt { get; set; }
/// <summary>
/// 连接持续时间(秒)
/// </summary>
[SugarColumn(IsNullable = true)]
public long ConnectionDuration { get; set; }
/// <summary>
/// 消息格式
/// </summary>
[SugarColumn(IsNullable = true)]
public string MessageFormat { get; set; }
}