mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 03:34:18 +01:00
21bbafb63d
* Enable MDNS logs comment * Work around ESP8266 mDNS broken for AP See also https://github.com/esp8266/Arduino/issues/6114 * Enable captive_portal in AP-only mode Fixes https://github.com/esphome/issues/issues/671 * Make ESP32 connecting faster See also https://github.com/espressif/arduino-esp32/pull/2989 * Format
22 lines
566 B
C++
22 lines
566 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "IPAddress.h"
|
|
|
|
namespace esphome {
|
|
|
|
/// Return whether the node is connected to the network (through wifi, eth, ...)
|
|
bool network_is_connected();
|
|
/// Get the active network hostname
|
|
std::string network_get_address();
|
|
|
|
/// Manually set up the network stack (outside of the App.setup() loop, for example in OTA safe mode)
|
|
#ifdef ARDUINO_ARCH_ESP8266
|
|
void network_setup_mdns(IPAddress address, int interface);
|
|
#endif
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
void network_setup_mdns();
|
|
#endif
|
|
void network_tick_mdns();
|
|
|
|
} // namespace esphome
|