Files
Finlytic/FinlyticCore/Models/MqttConfiguration.cs
T
2026-07-19 12:13:14 +02:00

32 lines
971 B
C#

namespace FinlyticCore.Models;
/// <summary>
/// Represents the network and security settings used to connect to the central MQTT broker.
/// </summary>
public class MqttConfiguration
{
/// <summary>
/// Gets or sets the host address or IP of the MQTT broker.
/// </summary>
public string Host { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the port number for the connection. Defaults to 1883.
/// </summary>
public int Port { get; set; } = 1883;
/// <summary>
/// Gets or sets the unique client identifier used when registering with the broker.
/// </summary>
public string ClientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the username for authentication (optional).
/// </summary>
public string? Username { get; set; }
/// <summary>
/// Gets or sets the password for authentication (optional).
/// </summary>
public string? Password { get; set; }
}