using System; using System.Xml.Serialization; using UnityEngine; namespace M2MqttUnity { /// /// Serializable settings for MQTT broker configuration. /// [Serializable] [XmlType(TypeName = "broker-settings")] public class BrokerSettings { [Tooltip("Address of the host running the broker")] public string host = "localhost"; [Tooltip("Port used to access the broker")] public int port = 1883; [Tooltip("Encrypted access to the broker")] public bool encrypted = false; [Tooltip("Optional alternate addresses, used if the previous host is not accessible")] public string[] alternateAddress; } }