Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
mqtt-protocol
main
Top Level Namespace
MQTT
Protocol
Connack
ReturnCode
Connect
Disconnect
Error
BadCredentials
Connect
IdentifierRejected
InvalidConnackFlags
InvalidFlags
NotAuthorized
PacketDecode
PacketEncode
ServerUnavailable
UnacceptableProtocolVersion
Flags
IO
Packet
PingReq
PingResp
PubAck
PubComp
Publish
PubRec
PubRel
SimplePacket
SubAck
ReturnCode
Subscribe
TopicFilter
UnsubAck
Unsubscribe
Will
Generated using Crystal 1.16.0
2025-04-19 12:38:07 UTC
struct
MQTT::
Protocol::
Will
MQTT::Protocol::Will
Struct
Value
Object
Defined in:
mqtt/protocol/packets/connect.cr
Constructors
.new
(topic : String, payload : Bytes, qos : UInt8, retain : Bool)
Class Method Summary
.from_io
(io : MQTT::Protocol::IO, qos : UInt8, retain : Bool)
Instance Method Summary
#bytesize
#payload
: Slice(UInt8)
#qos
: UInt8
#retain?
: Bool
#to_io
(io)
#topic
: String
Constructor Detail
def self.
new
(topic : String, payload : Bytes, qos : UInt8, retain : Bool)
#
[
View source
]
Class Method Detail
def self.
from_io
(io :
MQTT::Protocol::IO
, qos : UInt8, retain : Bool)
#
[
View source
]
Instance Method Detail
def
bytesize
#
[
View source
]
def
payload
: Slice(UInt8)
#
[
View source
]
def
qos
: UInt8
#
[
View source
]
def
retain?
: Bool
#
[
View source
]
def
to_io
(io)
#
[
View source
]
def
topic
: String
#
[
View source
]