ESPHome  2024.4.0
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
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
bool mqtt_is_connected()
Return whether the node has an active connection to an MQTT broker.
Definition: util.cpp:26