namespace Ai.AgentServer.Server.Mqtt_Ext { /// /// mqtt客户端配置 /// public class MqttClientConfig { public MqttClientConfig() { } /// /// 客户端名称 /// public string Name { get; set; } = "Mqtt"; /// /// 主机地址 /// public string Host { get; set; } /// /// 端口 /// public int Port { get; set; } /// /// 订阅的设备号用 ,逗号分隔 /// public string SubClients { get; set; } /// /// 用户名 /// public string UserName { get; set; } /// /// 秘钥 ///// public string SecretKey { get; set; } /// /// 客户端ID /// public string ClientId { get; set; } /// /// 心跳 /// public int KeepAlive { get; set; } = 60; /// /// 是否自动重连,默认True /// public bool Reconnect { get; set; } = true; /// /// 是否清除会话,默认True /// public bool CleanSession { get; set; } = true; /// /// 超时。默认15000ms /// public int Timeout { get; set; } = 15000; /// /// 是否进行SSL连接 /// public bool UseSSL { get; set; } = false; } }