ex_mqtt v0.2.0 ExMqtt.Message.Subscribe View Source

Struct for bus Subscribe

Fields

  • packet_id : An integer of value upto 65536 (2 bytes) representing packet identifier
  • topics : A list of string(binary) representing various topics.
  • requested_qoses : A list of integer of value 0,1,2 representing qoses.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %ExMqtt.Message.Subscribe{
  id: non_neg_integer(),
  requested_qoses: [0 | 1 | 2],
  topics: [String.t()],
  type: atom()
}