mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 04:03:05 +08:00
Refactor property definition for packets.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace MQTTnet.Protocol
|
||||
{
|
||||
public enum MqttConnectReasonCode
|
||||
{
|
||||
Success = 0,
|
||||
UnspecifiedError = 128,
|
||||
MalformedPacket = 129,
|
||||
ProtocolError = 130,
|
||||
ImplementationSpecificError = 131,
|
||||
UnsupportedProtocolVersion = 132,
|
||||
ClientIdentifierNotValid = 133,
|
||||
BadUserNameorPassword = 134,
|
||||
NotAuthorized = 135,
|
||||
ServerUnavailable = 136,
|
||||
ServerBusy = 137,
|
||||
Banned = 138,
|
||||
BadAuthenticationMethod = 140,
|
||||
TopicNameInvalid = 144,
|
||||
PacketTooLarge = 149,
|
||||
QuotaExceeded = 151,
|
||||
PayloadFormatInvalid = 153,
|
||||
RetainNotSupported = 154,
|
||||
QoSNotSupported = 155,
|
||||
UseAnotherServer = 156,
|
||||
ServerMoved = 157,
|
||||
ConnectionRateExceeded = 159
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace MQTTnet.Protocol
|
||||
{
|
||||
public enum MqttPropertyID
|
||||
{
|
||||
PayloadFormatIndicator = 1,
|
||||
MessageExpiryInterval = 2,
|
||||
ContentType = 3,
|
||||
ResponseTopic = 8,
|
||||
CorrelationData = 9,
|
||||
SubscriptionIdentifier = 11,
|
||||
SessionExpiryInterval = 17,
|
||||
AssignedClientIdentifer = 18,
|
||||
ServerKeepAlive = 19,
|
||||
AuthenticationMethod = 21,
|
||||
AuthenticationData = 22,
|
||||
RequestProblemInformation = 23,
|
||||
WillDelayInterval = 24,
|
||||
RequestResponseInformation = 25,
|
||||
ResponseInformation = 26,
|
||||
ServerReference = 28,
|
||||
ReasonString = 31,
|
||||
ReceiveMaximum = 33,
|
||||
TopicAliasMaximum = 34,
|
||||
TopicAlias = 35,
|
||||
MaximumQoS = 36,
|
||||
RetainAvailable = 37,
|
||||
UserProperty = 38,
|
||||
MaximumPacketSize = 39,
|
||||
WildcardSubscriptionAvailable = 40,
|
||||
SubscriptionIdentifierAvailable = 41,
|
||||
SharedSubscriptionAvailable = 42
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace MQTTnet.Protocol
|
||||
{
|
||||
public enum MqttPubAckReasonCode
|
||||
{
|
||||
Success = 0,
|
||||
NoMatchingSubscribers = 16,
|
||||
UnspecifiedError = 128,
|
||||
ImplementationSpecificError = 131,
|
||||
NotAuthorized = 135,
|
||||
TopicNameInvalid = 144,
|
||||
PacketIdentifierInUse = 145,
|
||||
QuotaExceeded = 151,
|
||||
PayloadFormatInvalid = 153
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user