18 lines
750 B
C#
18 lines
750 B
C#
namespace RobotNet10.MqttConnection;
|
|
|
|
public class MQTTConfig
|
|
{
|
|
public string Host { get; set; } = string.Empty;
|
|
public int Port { get; set; } = 1883;
|
|
public string ClientId { get; set; } = string.Empty;
|
|
public string Username { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public bool EnablePassword { get; set; } = false;
|
|
public bool EnableTls { get; set; } = false;
|
|
public bool EnableCA { get; set; } = false;
|
|
public string CaCertificatesPath { get; set; } = string.Empty;
|
|
public string ClientCertificatePath { get; set; } = string.Empty;
|
|
public string ClientKeyPath { get; set; } = string.Empty;
|
|
public int PublishRepeat { get; set; } = 2;
|
|
}
|