struct
MQTT::Protocol::Publish
- MQTT::Protocol::Publish
- MQTT::Protocol::Packet
- Struct
- Value
- Object
Defined in:
mqtt/protocol/packets/publish.crConstant Summary
-
TYPE =
3_u8
Constructors
Class Method Summary
Instance Method Summary
- #dup? : Bool
- #packet_id : UInt16?
- #payload : Slice(UInt8)
- #qos : UInt8
- #remaining_length : UInt32
- #retain? : Bool
- #to_io(io)
- #topic : String
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(topic : String, payload : Bytes, packet_id : UInt16 | Nil, dup : Bool, qos : UInt8, retain : Bool)
#