ESPHome
2023.8.3
esphome
esphome
core
util.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
namespace
esphome
{
5
7
bool
api_is_connected
();
8
10
bool
mqtt_is_connected
();
11
13
bool
remote_is_connected
();
14
15
}
// namespace esphome
esphome::api_is_connected
bool api_is_connected()
Return whether the node has at least one client connected to the native API.
Definition:
util.cpp:17
esphome::remote_is_connected
bool remote_is_connected()
Return whether the node has any form of "remote" connection via the API or to an MQTT broker...
Definition:
util.cpp:35
esphome
Definition:
a01nyub.cpp:7
esphome::mqtt_is_connected
bool mqtt_is_connected()
Return whether the node has an active connection to an MQTT broker.
Definition:
util.cpp:26
Generated by
1.8.13