class MQTT::V3::SubTopic

Defined in:

mqtt/v3/subscribe.cr

Constant Summary

ENDIAN = ["big"]
KLASS_NAME = [MQTT::V3::SubTopic]
PARTS = [{type: "basic", name: filter_size, cls: UInt16, onlyif: nil, verify: nil, value: -> do filter.bytesize end, endian: nil}, {type: "string", name: filter, cls: String, onlyif: nil, verify: nil, length: -> do filter_size end, value: nil, encoding: nil}, {type: "enum", name: qos, cls: typeof(QoS::FireAndForget.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: MQTT::QoS}] of Nil
REMAINING = [] of Nil

Class Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

[View source]

Macro Detail

macro mqtt_v3_ack(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_connack(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_connect(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_empty_packet(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_header(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_publish(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_sub_topic(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro mqtt_v3_suback(name, onlyif = nil, verify = nil, value = nil) #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def bytesize #

[View source]
def filter : String #

def filter=(filter : String) #

def filter_size : UInt16 #

def filter_size=(filter_size : UInt16) #

def qos : QoS #

def qos=(qos : QoS) #