MQTT::V5::Connack
Inherits MQTT::V5::ReasonCoded / MQTT::Header / BinData / Reference / Object
MQTT-3.2
Constants
AFTER_DESERIALIZE = [] of Nil
MQTT-3.2
ALLOWED_PROPERTIES = [PropertyId::SessionExpiryInterval, PropertyId::ReceiveMaximum, PropertyId::MaximumQoS, PropertyId::RetainAvailable, PropertyId::MaximumPacketSize, PropertyId::AssignedClientIdentifier, PropertyId::TopicAliasMaximum, PropertyId::ReasonString, PropertyId::UserProperty, PropertyId::WildcardSubscriptionAvailable, PropertyId::SubscriptionIdentifiersAvailable, PropertyId::SharedSubscriptionAvailable, PropertyId::ServerKeepAlive, PropertyId::ResponseInformation, PropertyId::ServerReference, PropertyId::AuthenticationMethod, PropertyId::AuthenticationData]
BEFORE_SERIALIZE = [] of Nil
MQTT-3.2
ENDIAN = ["big"]
MQTT-3.2
KLASS_NAME = [MQTT::V5::Connack]
MQTT-3.2
PARTS = [{type: "bitfield", name: 4, cls: MQTT::V5::Connack,
onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: raw_reason_code, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: properties, cls: MQTT::V5::Properties, onlyif: nil, verify: nil, value: nil}] of Nil
MQTT-3.2
REMAINING = [] of Nil
MQTT-3.2
Class methods
Instance methods
__format__
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.
_reserved_
_reserved_=(_reserved_ : UInt8)
authentication_data
Sourceauthentication_method
Sourcecalculate_length
Sourcemaximum_packet_size
Sourcemaximum_qos
Sourceproperties
properties=(properties : Properties)
raw_reason_code
raw_reason_code=(raw_reason_code : UInt8)
reason_string
Sourceresponse_information
Sourceretain_available?
Sourceserver_reference
Sourcesession_expiry_interval
Sourcesession_present
Sourcesession_present=(session_present : UInt8)
session_present=(value : Bool)
Sourcesubscription_identifier_available?
Sourcesuccess!
Sourcetopic_alias_maximum
Sourceuser_properties
Sourcevalidate!
Sourcewildcard_subscription_available?
Source