Init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user