ESPHome  2022.11.4
Data Structures | Namespaces | Typedefs | Enumerations | Variables
mqtt_client.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::mqtt::MQTTSubscription
 internal struct for MQTT subscriptions. More...
 
struct  esphome::mqtt::MQTTCredentials
 internal struct for MQTT credentials. More...
 
struct  esphome::mqtt::Availability
 Simple data struct for Home Assistant component availability. More...
 
struct  esphome::mqtt::MQTTDiscoveryInfo
 Internal struct for MQTT Home Assistant discovery. More...
 
class  esphome::mqtt::MQTTClientComponent
 
class  esphome::mqtt::MQTTMessageTrigger
 
class  esphome::mqtt::MQTTJsonMessageTrigger
 
class  esphome::mqtt::MQTTConnectTrigger
 
class  esphome::mqtt::MQTTDisconnectTrigger
 
class  esphome::mqtt::MQTTPublishAction< Ts >
 
class  esphome::mqtt::MQTTPublishJsonAction< Ts >
 
class  esphome::mqtt::MQTTConnectedCondition< Ts >
 

Namespaces

 esphome
 
 esphome::mqtt
 

Typedefs

using esphome::mqtt::mqtt_on_connect_callback_t = std::function< MQTTBackend::on_connect_callback_t >
 Callback for MQTT events. More...
 
using esphome::mqtt::mqtt_on_disconnect_callback_t = std::function< MQTTBackend::on_disconnect_callback_t >
 
using esphome::mqtt::mqtt_callback_t = std::function< void(const std::string &, const std::string &)>
 Callback for MQTT subscriptions. More...
 
using esphome::mqtt::mqtt_json_callback_t = std::function< void(const std::string &, JsonObject)>
 

Enumerations

enum  esphome::mqtt::MQTTDiscoveryUniqueIdGenerator { esphome::mqtt::MQTT_LEGACY_UNIQUE_ID_GENERATOR = 0, esphome::mqtt::MQTT_MAC_ADDRESS_UNIQUE_ID_GENERATOR }
 available discovery unique_id generators More...
 
enum  esphome::mqtt::MQTTDiscoveryObjectIdGenerator { esphome::mqtt::MQTT_NONE_OBJECT_ID_GENERATOR = 0, esphome::mqtt::MQTT_DEVICE_NAME_OBJECT_ID_GENERATOR }
 available discovery object_id generators More...
 
enum  esphome::mqtt::MQTTClientState { esphome::mqtt::MQTT_CLIENT_DISCONNECTED = 0, esphome::mqtt::MQTT_CLIENT_RESOLVING_ADDRESS, esphome::mqtt::MQTT_CLIENT_CONNECTING, esphome::mqtt::MQTT_CLIENT_CONNECTED }
 

Variables

MQTTClientComponent * esphome::mqtt::global_mqtt_client