#include <mqtt_backend_esp32.h>
|
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 | unsubscribe (const char *topic) final |
|
bool | publish (const char *topic, const char *payload, size_t length, uint8_t qos, bool retain) final |
|
void | loop () final |
|
void | set_ca_certificate (const std::string &cert) |
|
void | set_cl_certificate (const std::string &cert) |
|
void | set_cl_key (const std::string &key) |
|
void | set_skip_cert_cn_check (bool skip_check) |
|
virtual bool | publish (const MQTTMessage &message) |
|
Definition at line 45 of file mqtt_backend_esp32.h.
◆ ClientHandler_
◆ connect()
void esphome::mqtt::MQTTBackendESP32::connect |
( |
| ) |
|
|
inlinefinalvirtual |
◆ connected()
bool esphome::mqtt::MQTTBackendESP32::connected |
( |
| ) |
const |
|
inlinefinalvirtual |
◆ disconnect()
void esphome::mqtt::MQTTBackendESP32::disconnect |
( |
| ) |
|
|
inlinefinalvirtual |
◆ initialize_()
bool esphome::mqtt::MQTTBackendESP32::initialize_ |
( |
| ) |
|
|
protected |
◆ loop()
void esphome::mqtt::MQTTBackendESP32::loop |
( |
| ) |
|
|
finalvirtual |
◆ 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 |
◆ mqtt_event_handler_()
void esphome::mqtt::MQTTBackendESP32::mqtt_event_handler_ |
( |
const Event & |
event | ) |
|
|
protected |
◆ publish()
bool esphome::mqtt::MQTTBackendESP32::publish |
( |
const char * |
topic, |
|
|
const char * |
payload, |
|
|
size_t |
length, |
|
|
uint8_t |
qos, |
|
|
bool |
retain |
|
) |
| |
|
inlinefinalvirtual |
◆ set_ca_certificate()
void esphome::mqtt::MQTTBackendESP32::set_ca_certificate |
( |
const std::string & |
cert | ) |
|
|
inline |
◆ set_cl_certificate()
void esphome::mqtt::MQTTBackendESP32::set_cl_certificate |
( |
const std::string & |
cert | ) |
|
|
inline |
◆ set_cl_key()
void esphome::mqtt::MQTTBackendESP32::set_cl_key |
( |
const std::string & |
key | ) |
|
|
inline |
◆ set_clean_session()
void esphome::mqtt::MQTTBackendESP32::set_clean_session |
( |
bool |
clean_session | ) |
|
|
inlinefinalvirtual |
◆ set_client_id()
void esphome::mqtt::MQTTBackendESP32::set_client_id |
( |
const char * |
client_id | ) |
|
|
inlinefinalvirtual |
◆ set_credentials()
void esphome::mqtt::MQTTBackendESP32::set_credentials |
( |
const char * |
username, |
|
|
const char * |
password |
|
) |
| |
|
inlinefinalvirtual |
◆ set_keep_alive()
void esphome::mqtt::MQTTBackendESP32::set_keep_alive |
( |
uint16_t |
keep_alive | ) |
|
|
inlinefinalvirtual |
◆ set_on_connect()
void esphome::mqtt::MQTTBackendESP32::set_on_connect |
( |
std::function< on_connect_callback_t > && |
callback | ) |
|
|
inlinefinalvirtual |
◆ set_on_disconnect()
◆ set_on_message()
void esphome::mqtt::MQTTBackendESP32::set_on_message |
( |
std::function< on_message_callback_t > && |
callback | ) |
|
|
inlinefinalvirtual |
◆ set_on_publish()
◆ set_on_subscribe()
◆ set_on_unsubscribe()
◆ set_server() [1/2]
◆ set_server() [2/2]
void esphome::mqtt::MQTTBackendESP32::set_server |
( |
const char * |
host, |
|
|
uint16_t |
port |
|
) |
| |
|
inlinefinalvirtual |
◆ set_skip_cert_cn_check()
void esphome::mqtt::MQTTBackendESP32::set_skip_cert_cn_check |
( |
bool |
skip_check | ) |
|
|
inline |
◆ set_will()
void esphome::mqtt::MQTTBackendESP32::set_will |
( |
const char * |
topic, |
|
|
uint8_t |
qos, |
|
|
bool |
retain, |
|
|
const char * |
payload |
|
) |
| |
|
inlinefinalvirtual |
◆ subscribe()
bool esphome::mqtt::MQTTBackendESP32::subscribe |
( |
const char * |
topic, |
|
|
uint8_t |
qos |
|
) |
| |
|
inlinefinalvirtual |
◆ unsubscribe()
bool esphome::mqtt::MQTTBackendESP32::unsubscribe |
( |
const char * |
topic | ) |
|
|
inlinefinalvirtual |
◆ ca_certificate_
optional<std::string> esphome::mqtt::MQTTBackendESP32::ca_certificate_ |
|
protected |
◆ cl_certificate_
optional<std::string> esphome::mqtt::MQTTBackendESP32::cl_certificate_ |
|
protected |
◆ cl_key_
optional<std::string> esphome::mqtt::MQTTBackendESP32::cl_key_ |
|
protected |
◆ clean_session_
bool esphome::mqtt::MQTTBackendESP32::clean_session_ |
|
protected |
◆ client_id_
std::string esphome::mqtt::MQTTBackendESP32::client_id_ |
|
protected |
◆ handler_
◆ host_
std::string esphome::mqtt::MQTTBackendESP32::host_ |
|
protected |
◆ is_connected_
bool esphome::mqtt::MQTTBackendESP32::is_connected_ {false} |
|
protected |
◆ is_initalized_
bool esphome::mqtt::MQTTBackendESP32::is_initalized_ {false} |
|
protected |
◆ keep_alive_
uint16_t esphome::mqtt::MQTTBackendESP32::keep_alive_ |
|
protected |
◆ lwt_message_
std::string esphome::mqtt::MQTTBackendESP32::lwt_message_ |
|
protected |
◆ lwt_qos_
uint8_t esphome::mqtt::MQTTBackendESP32::lwt_qos_ |
|
protected |
◆ lwt_retain_
bool esphome::mqtt::MQTTBackendESP32::lwt_retain_ |
|
protected |
◆ lwt_topic_
std::string esphome::mqtt::MQTTBackendESP32::lwt_topic_ |
|
protected |
◆ MQTT_BUFFER_SIZE
const size_t esphome::mqtt::MQTTBackendESP32::MQTT_BUFFER_SIZE = 4096 |
|
static |
◆ mqtt_cfg_
esp_mqtt_client_config_t esphome::mqtt::MQTTBackendESP32::mqtt_cfg_ {} |
|
protected |
◆ mqtt_events_
std::queue<Event> esphome::mqtt::MQTTBackendESP32::mqtt_events_ |
|
protected |
◆ on_connect_
◆ on_disconnect_
◆ on_message_
◆ on_publish_
◆ on_subscribe_
◆ on_unsubscribe_
◆ password_
std::string esphome::mqtt::MQTTBackendESP32::password_ |
|
protected |
◆ port_
uint16_t esphome::mqtt::MQTTBackendESP32::port_ |
|
protected |
◆ skip_cert_cn_check_
bool esphome::mqtt::MQTTBackendESP32::skip_cert_cn_check_ {false} |
|
protected |
◆ username_
std::string esphome::mqtt::MQTTBackendESP32::username_ |
|
protected |
The documentation for this class was generated from the following files: