ESPHome  2024.12.2
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
bool api_is_connected()
Return whether the node has at least one client connected to the native API.
Definition: util.cpp:17
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
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool mqtt_is_connected()
Return whether the node has an active connection to an MQTT broker.
Definition: util.cpp:26