ex_mqtt v0.2.0 ExMqtt.Message.Publish View Source
Struct for bus Publish
Fields
packet_id
: An integer of value upto 65536 (2 bytes) representing packet identifiertopic
: A string(binary) representing the topic.message
: A string(binary) representing the message.dup
: An integer of value either 0,1 representing the dup bit.qos
: An integer of value either 0,1,2 representing the qos bit.retain
: An integer of value either 0,1 representing the retain bit.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %ExMqtt.Message.Publish{ dup: 0 | 1, id: non_neg_integer(), message: String.t(), qos: 0 | 1 | 2, retain: 0 | 1, topic: String.t(), type: atom() }