MqttCrystal::Packet::Connack
Inherits MqttCrystal::Packet / Reference / Object
Constructors
new(session_present : Bool = false, response : MqttCrystal::Packet::ConnackResponse = ConnackResponse::Accepted, flags : Array(Bool) = [false, false, false, false], body_length : UInt64 = 0_u64)
If this is a clean session, @session_present must be false otherwise up to the implementation to decide if the session exists
Instance methods
encode_body
Sourceparse_body(buffer : Array(UInt8))
Sourceresponse
Sourceresponse=(response : MqttCrystal::Packet::ConnackResponse)
Sourcesession_present
Sourcesession_present=(session_present : Bool)
Source