struct
MQTT::Protocol::Connect
- MQTT::Protocol::Connect
- MQTT::Protocol::Packet
- Struct
- Value
- Object
Defined in:
mqtt/protocol/packets/connect.crConstant Summary
-
TYPE =
1_u8
Constructors
Class Method Summary
Instance Method Summary
- #clean_session? : Bool
- #client_id : String
- #keepalive : UInt16
- #password : Slice(UInt8)?
- #to_io(io)
- #username : String?
- #will : MQTT::Protocol::Will?
Instance methods inherited from struct MQTT::Protocol::Packet
bytesize : UInt32
bytesize,
initialize
initialize,
remaining_length : UInt32
remaining_length,
to_io(io : MQTT::Protocol::IO)
to_io
Constructor methods inherited from struct MQTT::Protocol::Packet
from_io(io : ::IO) : Packetfrom_io(io : MQTT::Protocol::IO) : Packet from_io, new new
Constructor Detail
def self.new(client_id : String, clean_session : Bool, keepalive : UInt16, username : Nil | String, password : Slice(UInt8) | Nil, will : MQTT::Protocol::Will | Nil)
#