using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Paho.MqttDotnet
{
///
/// 表示mqtt客户端错误码
///
public enum MqttError
{
///
/// 成功
///
[Description("成功")]
Success = 0,
///
/// 失败
///
[Description("失败")]
Failure = -1,
///
/// 持久化错误
///
[Description("持久化错误")]
PersistenceError = -2,
///
/// 连接已断开
///
[Description("连接已断开")]
Disconnected = -3,
///
/// 超过最大消息飞行窗口
///
[Description("超过最大消息飞行窗口")]
MaxMessagesInflight = -4,
///
/// 无效的utf8字符串
///
[Description("无效的utf8字符串")]
BadUtf8String = -5,
///
/// 参数为NULL
///
[Description("参数为NULL")]
NullParameter = -6,
///
/// 主题被截断
///
[Description("主题被截断")]
TopicnameTruncated = -7,
///
/// 结构体版本号或id问题
///
[Description("结构体版本号或id问题")]
BadStructure = -8,
///
/// qos无效
///
[Description("qos无效")]
BadQos = -9,
///
/// 无更多的消息id可以使用
///
[Description("无更多的消息id可以使用")]
NoMoreMsgids = -10,
///
/// 操作未完成
///
[Description("操作未完成")]
OperationIncomplete = -11,
///
/// 消息过大
///
[Description("消息过大")]
MaxBufferedMessages = -12,
///
/// 未支持SSL
///
[Description("未支持SSL")]
SslNotSupported = -13
}
}