Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

23 rindas
650 B

  1. namespace MQTTnet.Core.Packets
  2. {
  3. public class MqttConnectPacket: MqttBasePacket
  4. {
  5. public string ClientId { get; set; }
  6. public string Username { get; set; }
  7. public string Password { get; set; }
  8. public ushort KeepAlivePeriod { get; set; }
  9. public bool CleanSession { get; set; }
  10. public MqttApplicationMessage WillMessage { get; set; }
  11. public override string ToString()
  12. {
  13. return $"{nameof(MqttConnectPacket)} [ClientId={ClientId}] [Username={Username}] [Password={Password}] [KeepAlivePeriod={KeepAlivePeriod}] [CleanSession={CleanSession}]";
  14. }
  15. }
  16. }