mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
22 lines
560 B
C#
22 lines
560 B
C#
using System;
|
|
|
|
namespace MQTTnet.Core.Client
|
|
{
|
|
public class MqttClientOptions
|
|
{
|
|
public string Server { get; set; }
|
|
|
|
public int Port { get; set; } = 1883;
|
|
|
|
public string UserName { get; set; }
|
|
|
|
public string Password { get; set; }
|
|
|
|
public string ClientId { get; set; } = Guid.NewGuid().ToString().Replace("-", string.Empty);
|
|
|
|
public TimeSpan KeepAlivePeriod { get; set; } = TimeSpan.FromSeconds(5);
|
|
|
|
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
|
|
}
|
|
}
|