ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::mqtt::MQTTTopicSource Struct Reference

Where a subscription's topic comes from. The topic is rebuilt whenever it is needed, so nothing is stored. More...

#include <mqtt_client.h>

Public Member Functions

StringRef build (std::span< char, MQTT_DEFAULT_TOPIC_MAX_LEN > buf) const
 

Data Fields

mqtt_topic_builder_t builder
 
const void * context
 

Detailed Description

Where a subscription's topic comes from. The topic is rebuilt whenever it is needed, so nothing is stored.

Definition at line 70 of file mqtt_client.h.

Member Function Documentation

◆ build()

StringRef esphome::mqtt::MQTTTopicSource::build ( std::span< char, MQTT_DEFAULT_TOPIC_MAX_LEN > buf) const
inline

Definition at line 73 of file mqtt_client.h.

Field Documentation

◆ builder

mqtt_topic_builder_t esphome::mqtt::MQTTTopicSource::builder

Definition at line 71 of file mqtt_client.h.

◆ context

const void* esphome::mqtt::MQTTTopicSource::context

Definition at line 72 of file mqtt_client.h.


The documentation for this struct was generated from the following file: