您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

17 行
455 B

  1. using MQTTnet.Core.Exceptions;
  2. using MQTTnet.Core.Protocol;
  3. namespace MQTTnet.Core.Adapter
  4. {
  5. public class MqttConnectingFailedException : MqttCommunicationException
  6. {
  7. public MqttConnectingFailedException(MqttConnectReturnCode returnCode)
  8. : base($"Connecting with MQTT server failed ({returnCode}).")
  9. {
  10. ReturnCode = returnCode;
  11. }
  12. public MqttConnectReturnCode ReturnCode { get; }
  13. }
  14. }