class
MQTT::V5::Auth
- MQTT::V5::Auth
- MQTT::V5::Reasoned
- MQTT::Header
- BinData
- Reference
- Object
Overview
Enhanced authentication, MQTT-3.15
Defined in:
mqtt/v5/ack.crConstant Summary
-
AFTER_DESERIALIZE =
[] of Nil -
Enhanced authentication, MQTT-3.15
-
ALLOWED_PROPERTIES =
[PropertyId::AuthenticationMethod, PropertyId::AuthenticationData, PropertyId::ReasonString, PropertyId::UserProperty] -
BEFORE_SERIALIZE =
[] of Nil -
Enhanced authentication, MQTT-3.15
-
ENDIAN =
["big"] -
Enhanced authentication, MQTT-3.15
-
KLASS_NAME =
[MQTT::V5::Auth] -
Enhanced authentication, MQTT-3.15
-
PARTS =
[] of Nil -
Enhanced authentication, MQTT-3.15
-
REMAINING =
[] of Nil -
Enhanced authentication, MQTT-3.15
Class Method Summary
-
.bit_fields
Enhanced authentication, MQTT-3.15
Instance Method Summary
-
#__format__ : IO::ByteFormat
A
grouporbit_fieldcaptures the endianness at its declaration point, so declaringendianafter one would silently leave it system-endian. - #authentication_data : Bytes | Nil
- #authentication_data=(value : Bytes | Nil)
- #authentication_method : String | Nil
- #authentication_method=(value : String | Nil)
- #validate! : self
Instance methods inherited from class MQTT::V5::Reasoned
__format__ : IO::ByteFormat
__format__,
add_user_property(key : String, value : String) : Nil
add_user_property,
calculate_length : UInt32
calculate_length,
properties : Properties
properties,
properties=(properties : Properties)
properties=,
raw_reason_code : UInt8
raw_reason_code,
raw_reason_code=(raw_reason_code : UInt8)
raw_reason_code=,
reason_string : String | Nil
reason_string,
reason_string=(value : String | Nil)
reason_string=,
user_properties : Array(Tuple(String, String))
user_properties
Class methods inherited from class MQTT::V5::Reasoned
bit_fields
bit_fields
Instance methods inherited from module MQTT::V5::ReasonCoded
error? : Bool
error?,
reason_code : ReasonCode | Nil
reason_code,
reason_code=(code : ReasonCode) : ReasonCode
reason_code=,
reason_description : String
reason_description,
success? : Bool
success?
Instance methods inherited from class MQTT::Header
__format__ : IO::ByteFormat
__format__,
duplicate : Bool
duplicate,
duplicate=(duplicate : UInt8)duplicate=(value : Bool) duplicate=, fixed_header_size : Int32 fixed_header_size, id : MQTT::RequestType id, id=(id : UInt8)
id=(value : MQTT::RequestType) id=, packet_length : UInt32 packet_length, packet_length=(size : UInt32) : UInt32 packet_length=, qos : MQTT::QoS qos, qos=(qos : UInt8)
qos=(value : MQTT::QoS) qos=, qos? qos?, retain : Bool retain, retain=(retain : UInt8)
retain=(value : Bool) retain=, variable_length1 : UInt8 variable_length1, variable_length1=(value : UInt8) : UInt8 variable_length1=, variable_length2 : UInt8 variable_length2, variable_length2=(value : UInt8) : UInt8 variable_length2=, variable_length3 : UInt8 variable_length3, variable_length3=(value : UInt8) : UInt8 variable_length3=, variable_length4 : UInt8 variable_length4, variable_length4=(value : UInt8) : UInt8 variable_length4=
Class methods inherited from class MQTT::Header
bit_fields
bit_fields
Class Method Detail
Instance Method Detail
def __format__ : IO::ByteFormat
#
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.