ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::mqtt::MQTTBackendESP32 Class Referencefinal

#include <mqtt_backend_esp32.h>

Inheritance diagram for esphome::mqtt::MQTTBackendESP32:
esphome::mqtt::MQTTBackend

Data Structures

struct  MqttClientDeleter
 

Public Member Functions

void set_keep_alive (uint16_t keep_alive) final
 
void set_client_id (const char *client_id) final
 
void set_clean_session (bool clean_session) final
 
void set_credentials (const char *username, const char *password) final
 
void set_will (const char *topic, uint8_t qos, bool retain, const char *payload) final
 
void set_server (network::IPAddress ip, uint16_t port) final
 
void set_server (const char *host, uint16_t port) final
 
void set_on_connect (std::function< on_connect_callback_t > &&callback) final
 
void set_on_disconnect (std::function< on_disconnect_callback_t > &&callback) final
 
void set_on_subscribe (std::function< on_subscribe_callback_t > &&callback) final
 
void set_on_unsubscribe (std::function< on_unsubscribe_callback_t > &&callback) final
 
void set_on_message (std::function< on_message_callback_t > &&callback) final
 
void set_on_publish (std::function< on_publish_user_callback_t > &&callback) final
 
bool connected () const final
 
void connect () final
 
void disconnect () final
 
bool subscribe (const char *topic, uint8_t qos) final
 
bool can_subscribe () const final
 
bool unsubscribe (const char *topic) final
 
bool publish (const char *topic, const char *payload, size_t length, uint8_t qos, bool retain) final
 
bool publish_tracked (const MQTTMessage &message) final
 
bool publish_acknowledged () const final
 
const SubackCounter & get_subacks () const
 
void loop () final
 
void set_ca_certificate (const char *cert)
 
void set_cl_certificate (const char *cert)
 
void set_cl_key (const char *key)
 
void set_skip_cert_cn_check (bool skip_check)
 
void set_transport (MQTTTransport transport)
 
void set_ws_path (const char *path)
 
MQTTTransport get_transport () const
 
const char * get_ws_path () const
 
virtual bool publish (const MQTTMessage &message)
 
- Public Member Functions inherited from esphome::mqtt::MQTTBackend

Static Public Attributes

static constexpr size_t MQTT_BUFFER_SIZE = 4096
 
static constexpr size_t TASK_STACK_SIZE = 3072
 
static constexpr size_t TASK_STACK_SIZE_TLS = 4096
 
static constexpr ssize_t TASK_PRIORITY = 5
 
static constexpr uint8_t MQTT_QUEUE_LENGTH = 30
 
static constexpr uint8_t MQTT_EVENT_QUEUE_LENGTH = 32
 
static constexpr uint32_t EVENT_DRAIN_BUDGET_MS = 10
 
static constexpr uint8_t MQTT_EVENT_POOL_SIZE = MQTT_EVENT_QUEUE_LENGTH - 1
 

Protected Types

using ClientHandler_ = std::unique_ptr<esp_mqtt_client, MqttClientDeleter>
 

Protected Member Functions

bool initialize_ ()
 
void mqtt_event_handler_ (const Event &event)
 
uint16_t sent_on_connection_ () const
 SUBSCRIBEs sent on this connection, less those the task could not send.
 
void count_lost_subscribe_ ()
 
bool enqueue_ (MqttQueueTypeT type, const char *topic, int qos=0, bool retain=false, const char *payload=NULL, size_t len=0)
 

Static Protected Member Functions

static void mqtt_event_handler (void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)
 static - Dispatch event to instance method
 
static void esphome_mqtt_task (void *params)
 

Protected Attributes

ClientHandler_ handler_
 
bool is_connected_ {false}
 
bool is_initalized_ {false}
 
std::atomic< uint16_t > subscribes_lost_ {0}
 
esp_mqtt_client_config_t mqtt_cfg_ {}
 
std::string host_
 
uint16_t port_
 
uint16_t subscribes_sent_ {0}
 SUBSCRIBEs sent on this connection.
 
std::string username_
 
std::string password_
 
std::string lwt_topic_
 
std::string lwt_message_
 
uint8_t lwt_qos_
 
bool lwt_retain_
 
uint16_t subscribes_lost_at_connect_ {0}
 
std::string client_id_
 
uint16_t keep_alive_
 
bool clean_session_
 
bool dispatching_ {false}
 
std::atomic< uint8_t > tracked_acked_ {0}
 
const char * ca_certificate_ {nullptr}
 
const char * cl_certificate_ {nullptr}
 
const char * cl_key_ {nullptr}
 
bool skip_cert_cn_check_ {false}
 
MQTTTransport transport_ {MQTTTransport::MQTT_TRANSPORT_TCP}
 
const char * ws_path_ {nullptr}
 
EventPool< struct QueueElement, MQTT_QUEUE_LENGTH - 1 > mqtt_outbound_pool_
 
NotifyingLockFreeQueue< struct QueueElement, MQTT_QUEUE_LENGTH > mqtt_queue_
 
TaskHandle_t task_handle_ {nullptr}
 
CallbackManager< on_connect_callback_t > on_connect_
 
CallbackManager< on_disconnect_callback_t > on_disconnect_
 
CallbackManager< on_subscribe_callback_t > on_subscribe_
 
CallbackManager< on_unsubscribe_callback_t > on_unsubscribe_
 
CallbackManager< on_message_callback_t > on_message_
 
CallbackManager< on_publish_user_callback_t > on_publish_
 
std::string cached_topic_
 
std::atomic< uint16_t > tracked_msg_id_ {0}
 
std::atomic< uint16_t > acked_msg_id_ {0}
 
SubackCounter subacks_
 
EventPool< Event, MQTT_EVENT_POOL_SIZE > mqtt_event_pool_
 
LockFreeQueue< Event, MQTT_EVENT_QUEUE_LENGTH > mqtt_event_queue_
 
uint32_t last_dropped_log_time_ {0}
 

Static Protected Attributes

static constexpr uint32_t DROP_LOG_INTERVAL_MS = 10000
 

Additional Inherited Members

- Public Types inherited from esphome::mqtt::MQTTBackend
using on_connect_callback_t = void(bool session_present)
 
using on_disconnect_callback_t = void(MQTTClientDisconnectReason reason)
 
using on_subscribe_callback_t = void(uint16_t packet_id, uint8_t return_code)
 
using on_unsubscribe_callback_t = void(uint16_t packet_id)
 
using on_message_callback_t = void(const char *topic, const char *payload, size_t len, size_t index, size_t total)
 
using on_publish_user_callback_t = void(uint16_t packet_id)
 

Detailed Description

Definition at line 123 of file mqtt_backend_esp32.h.

Member Typedef Documentation

◆ ClientHandler_

using esphome::mqtt::MQTTBackendESP32::ClientHandler_ = std::unique_ptr<esp_mqtt_client, MqttClientDeleter>
protected

Definition at line 276 of file mqtt_backend_esp32.h.

Member Function Documentation

◆ can_subscribe()

bool esphome::mqtt::MQTTBackendESP32::can_subscribe ( ) const
inlinefinalvirtual

Reimplemented from esphome::mqtt::MQTTBackend.

Definition at line 207 of file mqtt_backend_esp32.h.

◆ connect()

void esphome::mqtt::MQTTBackendESP32::connect ( )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 181 of file mqtt_backend_esp32.h.

◆ connected()

bool esphome::mqtt::MQTTBackendESP32::connected ( ) const
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 179 of file mqtt_backend_esp32.h.

◆ count_lost_subscribe_()

void esphome::mqtt::MQTTBackendESP32::count_lost_subscribe_ ( )
inlineprotected

Definition at line 323 of file mqtt_backend_esp32.h.

◆ disconnect()

void esphome::mqtt::MQTTBackendESP32::disconnect ( )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 188 of file mqtt_backend_esp32.h.

◆ enqueue_()

bool esphome::mqtt::MQTTBackendESP32::enqueue_ ( MqttQueueTypeT type,
const char * topic,
int qos = 0,
bool retain = false,
const char * payload = NULL,
size_t len = 0 )
protected

Definition at line 343 of file mqtt_backend_esp32.cpp.

◆ esphome_mqtt_task()

void esphome::mqtt::MQTTBackendESP32::esphome_mqtt_task ( void * params)
staticprotected

Definition at line 305 of file mqtt_backend_esp32.cpp.

◆ get_subacks()

const SubackCounter & esphome::mqtt::MQTTBackendESP32::get_subacks ( ) const
inline

Definition at line 237 of file mqtt_backend_esp32.h.

◆ get_transport()

MQTTTransport esphome::mqtt::MQTTBackendESP32::get_transport ( ) const
inline

Definition at line 250 of file mqtt_backend_esp32.h.

◆ get_ws_path()

const char * esphome::mqtt::MQTTBackendESP32::get_ws_path ( ) const
inline

Definition at line 251 of file mqtt_backend_esp32.h.

◆ initialize_()

bool esphome::mqtt::MQTTBackendESP32::initialize_ ( )
protected

Definition at line 20 of file mqtt_backend_esp32.cpp.

◆ loop()

void esphome::mqtt::MQTTBackendESP32::loop ( )
finalvirtual

Reimplemented from esphome::mqtt::MQTTBackend.

Definition at line 108 of file mqtt_backend_esp32.cpp.

◆ mqtt_event_handler()

void esphome::mqtt::MQTTBackendESP32::mqtt_event_handler ( void * handler_args,
esp_event_base_t base,
int32_t event_id,
void * event_data )
staticprotected

static - Dispatch event to instance method

Definition at line 229 of file mqtt_backend_esp32.cpp.

◆ mqtt_event_handler_()

void esphome::mqtt::MQTTBackendESP32::mqtt_event_handler_ ( const Event & event)
protected

Definition at line 154 of file mqtt_backend_esp32.cpp.

◆ publish() [1/2]

bool esphome::mqtt::MQTTBackendESP32::publish ( const char * topic,
const char * payload,
size_t length,
uint8_t qos,
bool retain )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 225 of file mqtt_backend_esp32.h.

◆ publish() [2/2]

virtual bool esphome::mqtt::MQTTBackend::publish ( const MQTTMessage & message)
inlinevirtual

Reimplemented from esphome::mqtt::MQTTBackend.

Definition at line 87 of file mqtt_backend.h.

◆ publish_acknowledged()

bool esphome::mqtt::MQTTBackendESP32::publish_acknowledged ( ) const
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 236 of file mqtt_backend_esp32.h.

◆ publish_tracked()

bool esphome::mqtt::MQTTBackendESP32::publish_tracked ( const MQTTMessage & message)
finalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 290 of file mqtt_backend_esp32.cpp.

◆ sent_on_connection_()

uint16_t esphome::mqtt::MQTTBackendESP32::sent_on_connection_ ( ) const
inlineprotected

SUBSCRIBEs sent on this connection, less those the task could not send.

Definition at line 268 of file mqtt_backend_esp32.h.

◆ set_ca_certificate()

void esphome::mqtt::MQTTBackendESP32::set_ca_certificate ( const char * cert)
inline

Definition at line 243 of file mqtt_backend_esp32.h.

◆ set_cl_certificate()

void esphome::mqtt::MQTTBackendESP32::set_cl_certificate ( const char * cert)
inline

Definition at line 244 of file mqtt_backend_esp32.h.

◆ set_cl_key()

void esphome::mqtt::MQTTBackendESP32::set_cl_key ( const char * key)
inline

Definition at line 245 of file mqtt_backend_esp32.h.

◆ set_clean_session()

void esphome::mqtt::MQTTBackendESP32::set_clean_session ( bool clean_session)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 136 of file mqtt_backend_esp32.h.

◆ set_client_id()

void esphome::mqtt::MQTTBackendESP32::set_client_id ( const char * client_id)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 135 of file mqtt_backend_esp32.h.

◆ set_credentials()

void esphome::mqtt::MQTTBackendESP32::set_credentials ( const char * username,
const char * password )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 138 of file mqtt_backend_esp32.h.

◆ set_keep_alive()

void esphome::mqtt::MQTTBackendESP32::set_keep_alive ( uint16_t keep_alive)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 134 of file mqtt_backend_esp32.h.

◆ set_on_connect()

void esphome::mqtt::MQTTBackendESP32::set_on_connect ( std::function< on_connect_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 161 of file mqtt_backend_esp32.h.

◆ set_on_disconnect()

void esphome::mqtt::MQTTBackendESP32::set_on_disconnect ( std::function< on_disconnect_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 164 of file mqtt_backend_esp32.h.

◆ set_on_message()

void esphome::mqtt::MQTTBackendESP32::set_on_message ( std::function< on_message_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 173 of file mqtt_backend_esp32.h.

◆ set_on_publish()

void esphome::mqtt::MQTTBackendESP32::set_on_publish ( std::function< on_publish_user_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 176 of file mqtt_backend_esp32.h.

◆ set_on_subscribe()

void esphome::mqtt::MQTTBackendESP32::set_on_subscribe ( std::function< on_subscribe_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 167 of file mqtt_backend_esp32.h.

◆ set_on_unsubscribe()

void esphome::mqtt::MQTTBackendESP32::set_on_unsubscribe ( std::function< on_unsubscribe_callback_t > && callback)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 170 of file mqtt_backend_esp32.h.

◆ set_server() [1/2]

void esphome::mqtt::MQTTBackendESP32::set_server ( const char * host,
uint16_t port )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 157 of file mqtt_backend_esp32.h.

◆ set_server() [2/2]

void esphome::mqtt::MQTTBackendESP32::set_server ( network::IPAddress ip,
uint16_t port )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 152 of file mqtt_backend_esp32.h.

◆ set_skip_cert_cn_check()

void esphome::mqtt::MQTTBackendESP32::set_skip_cert_cn_check ( bool skip_check)
inline

Definition at line 246 of file mqtt_backend_esp32.h.

◆ set_transport()

void esphome::mqtt::MQTTBackendESP32::set_transport ( MQTTTransport transport)
inline

Definition at line 248 of file mqtt_backend_esp32.h.

◆ set_will()

void esphome::mqtt::MQTTBackendESP32::set_will ( const char * topic,
uint8_t qos,
bool retain,
const char * payload )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 144 of file mqtt_backend_esp32.h.

◆ set_ws_path()

void esphome::mqtt::MQTTBackendESP32::set_ws_path ( const char * path)
inline

Definition at line 249 of file mqtt_backend_esp32.h.

◆ subscribe()

bool esphome::mqtt::MQTTBackendESP32::subscribe ( const char * topic,
uint8_t qos )
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 193 of file mqtt_backend_esp32.h.

◆ unsubscribe()

bool esphome::mqtt::MQTTBackendESP32::unsubscribe ( const char * topic)
inlinefinalvirtual

Implements esphome::mqtt::MQTTBackend.

Definition at line 217 of file mqtt_backend_esp32.h.

Field Documentation

◆ acked_msg_id_

std::atomic<uint16_t> esphome::mqtt::MQTTBackendESP32::acked_msg_id_ {0}
protected

Definition at line 341 of file mqtt_backend_esp32.h.

◆ ca_certificate_

const char* esphome::mqtt::MQTTBackendESP32::ca_certificate_ {nullptr}
protected

Definition at line 309 of file mqtt_backend_esp32.h.

◆ cached_topic_

std::string esphome::mqtt::MQTTBackendESP32::cached_topic_
protected

Definition at line 337 of file mqtt_backend_esp32.h.

◆ cl_certificate_

const char* esphome::mqtt::MQTTBackendESP32::cl_certificate_ {nullptr}
protected

Definition at line 310 of file mqtt_backend_esp32.h.

◆ cl_key_

const char* esphome::mqtt::MQTTBackendESP32::cl_key_ {nullptr}
protected

Definition at line 311 of file mqtt_backend_esp32.h.

◆ clean_session_

bool esphome::mqtt::MQTTBackendESP32::clean_session_
protected

Definition at line 304 of file mqtt_backend_esp32.h.

◆ client_id_

std::string esphome::mqtt::MQTTBackendESP32::client_id_
protected

Definition at line 302 of file mqtt_backend_esp32.h.

◆ dispatching_

bool esphome::mqtt::MQTTBackendESP32::dispatching_ {false}
protected

Definition at line 305 of file mqtt_backend_esp32.h.

◆ DROP_LOG_INTERVAL_MS

uint32_t esphome::mqtt::MQTTBackendESP32::DROP_LOG_INTERVAL_MS = 10000
staticconstexprprotected

Definition at line 355 of file mqtt_backend_esp32.h.

◆ EVENT_DRAIN_BUDGET_MS

uint32_t esphome::mqtt::MQTTBackendESP32::EVENT_DRAIN_BUDGET_MS = 10
staticconstexpr

Definition at line 131 of file mqtt_backend_esp32.h.

◆ handler_

ClientHandler_ esphome::mqtt::MQTTBackendESP32::handler_
protected

Definition at line 277 of file mqtt_backend_esp32.h.

◆ host_

std::string esphome::mqtt::MQTTBackendESP32::host_
protected

Definition at line 288 of file mqtt_backend_esp32.h.

◆ is_connected_

bool esphome::mqtt::MQTTBackendESP32::is_connected_ {false}
protected

Definition at line 279 of file mqtt_backend_esp32.h.

◆ is_initalized_

bool esphome::mqtt::MQTTBackendESP32::is_initalized_ {false}
protected

Definition at line 280 of file mqtt_backend_esp32.h.

◆ keep_alive_

uint16_t esphome::mqtt::MQTTBackendESP32::keep_alive_
protected

Definition at line 303 of file mqtt_backend_esp32.h.

◆ last_dropped_log_time_

uint32_t esphome::mqtt::MQTTBackendESP32::last_dropped_log_time_ {0}
protected

Definition at line 354 of file mqtt_backend_esp32.h.

◆ lwt_message_

std::string esphome::mqtt::MQTTBackendESP32::lwt_message_
protected

Definition at line 295 of file mqtt_backend_esp32.h.

◆ lwt_qos_

uint8_t esphome::mqtt::MQTTBackendESP32::lwt_qos_
protected

Definition at line 296 of file mqtt_backend_esp32.h.

◆ lwt_retain_

bool esphome::mqtt::MQTTBackendESP32::lwt_retain_
protected

Definition at line 297 of file mqtt_backend_esp32.h.

◆ lwt_topic_

std::string esphome::mqtt::MQTTBackendESP32::lwt_topic_
protected

Definition at line 294 of file mqtt_backend_esp32.h.

◆ MQTT_BUFFER_SIZE

size_t esphome::mqtt::MQTTBackendESP32::MQTT_BUFFER_SIZE = 4096
staticconstexpr

Definition at line 125 of file mqtt_backend_esp32.h.

◆ mqtt_cfg_

esp_mqtt_client_config_t esphome::mqtt::MQTTBackendESP32::mqtt_cfg_ {}
protected

Definition at line 286 of file mqtt_backend_esp32.h.

◆ mqtt_event_pool_

EventPool<Event, MQTT_EVENT_POOL_SIZE> esphome::mqtt::MQTTBackendESP32::mqtt_event_pool_
protected

Definition at line 350 of file mqtt_backend_esp32.h.

◆ MQTT_EVENT_POOL_SIZE

uint8_t esphome::mqtt::MQTTBackendESP32::MQTT_EVENT_POOL_SIZE = MQTT_EVENT_QUEUE_LENGTH - 1
staticconstexpr

Definition at line 132 of file mqtt_backend_esp32.h.

◆ mqtt_event_queue_

LockFreeQueue<Event, MQTT_EVENT_QUEUE_LENGTH> esphome::mqtt::MQTTBackendESP32::mqtt_event_queue_
protected

Definition at line 351 of file mqtt_backend_esp32.h.

◆ MQTT_EVENT_QUEUE_LENGTH

uint8_t esphome::mqtt::MQTTBackendESP32::MQTT_EVENT_QUEUE_LENGTH = 32
staticconstexpr

Definition at line 130 of file mqtt_backend_esp32.h.

◆ mqtt_outbound_pool_

EventPool<struct QueueElement, MQTT_QUEUE_LENGTH - 1> esphome::mqtt::MQTTBackendESP32::mqtt_outbound_pool_
protected

Definition at line 319 of file mqtt_backend_esp32.h.

◆ mqtt_queue_

NotifyingLockFreeQueue<struct QueueElement, MQTT_QUEUE_LENGTH> esphome::mqtt::MQTTBackendESP32::mqtt_queue_
protected

Definition at line 320 of file mqtt_backend_esp32.h.

◆ MQTT_QUEUE_LENGTH

uint8_t esphome::mqtt::MQTTBackendESP32::MQTT_QUEUE_LENGTH = 30
staticconstexpr

Definition at line 129 of file mqtt_backend_esp32.h.

◆ on_connect_

CallbackManager<on_connect_callback_t> esphome::mqtt::MQTTBackendESP32::on_connect_
protected

Definition at line 331 of file mqtt_backend_esp32.h.

◆ on_disconnect_

CallbackManager<on_disconnect_callback_t> esphome::mqtt::MQTTBackendESP32::on_disconnect_
protected

Definition at line 332 of file mqtt_backend_esp32.h.

◆ on_message_

CallbackManager<on_message_callback_t> esphome::mqtt::MQTTBackendESP32::on_message_
protected

Definition at line 335 of file mqtt_backend_esp32.h.

◆ on_publish_

CallbackManager<on_publish_user_callback_t> esphome::mqtt::MQTTBackendESP32::on_publish_
protected

Definition at line 336 of file mqtt_backend_esp32.h.

◆ on_subscribe_

CallbackManager<on_subscribe_callback_t> esphome::mqtt::MQTTBackendESP32::on_subscribe_
protected

Definition at line 333 of file mqtt_backend_esp32.h.

◆ on_unsubscribe_

CallbackManager<on_unsubscribe_callback_t> esphome::mqtt::MQTTBackendESP32::on_unsubscribe_
protected

Definition at line 334 of file mqtt_backend_esp32.h.

◆ password_

std::string esphome::mqtt::MQTTBackendESP32::password_
protected

Definition at line 293 of file mqtt_backend_esp32.h.

◆ port_

uint16_t esphome::mqtt::MQTTBackendESP32::port_
protected

Definition at line 289 of file mqtt_backend_esp32.h.

◆ skip_cert_cn_check_

bool esphome::mqtt::MQTTBackendESP32::skip_cert_cn_check_ {false}
protected

Definition at line 312 of file mqtt_backend_esp32.h.

◆ subacks_

SubackCounter esphome::mqtt::MQTTBackendESP32::subacks_
protected

Definition at line 343 of file mqtt_backend_esp32.h.

◆ subscribes_lost_

std::atomic<uint16_t> esphome::mqtt::MQTTBackendESP32::subscribes_lost_ {0}
protected

Definition at line 283 of file mqtt_backend_esp32.h.

◆ subscribes_lost_at_connect_

uint16_t esphome::mqtt::MQTTBackendESP32::subscribes_lost_at_connect_ {0}
protected

Definition at line 300 of file mqtt_backend_esp32.h.

◆ subscribes_sent_

uint16_t esphome::mqtt::MQTTBackendESP32::subscribes_sent_ {0}
protected

SUBSCRIBEs sent on this connection.

Definition at line 291 of file mqtt_backend_esp32.h.

◆ task_handle_

TaskHandle_t esphome::mqtt::MQTTBackendESP32::task_handle_ {nullptr}
protected

Definition at line 321 of file mqtt_backend_esp32.h.

◆ TASK_PRIORITY

ssize_t esphome::mqtt::MQTTBackendESP32::TASK_PRIORITY = 5
staticconstexpr

Definition at line 128 of file mqtt_backend_esp32.h.

◆ TASK_STACK_SIZE

size_t esphome::mqtt::MQTTBackendESP32::TASK_STACK_SIZE = 3072
staticconstexpr

Definition at line 126 of file mqtt_backend_esp32.h.

◆ TASK_STACK_SIZE_TLS

size_t esphome::mqtt::MQTTBackendESP32::TASK_STACK_SIZE_TLS = 4096
staticconstexpr

Definition at line 127 of file mqtt_backend_esp32.h.

◆ tracked_acked_

std::atomic<uint8_t> esphome::mqtt::MQTTBackendESP32::tracked_acked_ {0}
protected

Definition at line 307 of file mqtt_backend_esp32.h.

◆ tracked_msg_id_

std::atomic<uint16_t> esphome::mqtt::MQTTBackendESP32::tracked_msg_id_ {0}
protected

Definition at line 340 of file mqtt_backend_esp32.h.

◆ transport_

MQTTTransport esphome::mqtt::MQTTBackendESP32::transport_ {MQTTTransport::MQTT_TRANSPORT_TCP}
protected

Definition at line 314 of file mqtt_backend_esp32.h.

◆ username_

std::string esphome::mqtt::MQTTBackendESP32::username_
protected

Definition at line 292 of file mqtt_backend_esp32.h.

◆ ws_path_

const char* esphome::mqtt::MQTTBackendESP32::ws_path_ {nullptr}
protected

Definition at line 315 of file mqtt_backend_esp32.h.


The documentation for this class was generated from the following files: