ex_mqtt v0.2.0 ExMqtt.Message.Connect View Source

Struct for bus Connect

Fields

  • client_id : A string(binary) representing the client.
  • username : A string(binary) representing the username.
  • password : A string(binary) representing the password.
  • will_topic : A string(binary) representing the will topic.
  • will_message : A string(binary) representing the will message.
  • will_qos : An integer of value either 0,1,2 representing the will qos.
  • will_retain : An integer of value either 0,1 representing the will retain.
  • clean_session : An integer of value either 0,1 representing whether the session is clean.
  • keep_alive : An integer representing the keep alive value in seconds.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %ExMqtt.Message.Connect{
  clean_session: 0 | 1,
  client_id: String.t(),
  keep_alive: integer(),
  password: String.t(),
  type: atom(),
  username: String.t(),
  will_message: String.t(),
  will_qos: 0 | 1 | 2,
  will_retain: 0 | 1,
  will_topic: String.t()
}