mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 03:42:20 +01:00
Add DNS to Text info (#4821)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -183,6 +183,11 @@ network::IPAddress WiFiComponent::get_ip_address() {
|
||||
return this->wifi_soft_ap_ip();
|
||||
return {};
|
||||
}
|
||||
network::IPAddress WiFiComponent::get_dns_address(int num) {
|
||||
if (this->has_sta())
|
||||
return this->wifi_dns_ip_(num);
|
||||
return {};
|
||||
}
|
||||
std::string WiFiComponent::get_use_address() const {
|
||||
if (this->use_address_.empty()) {
|
||||
return App.get_name() + ".local";
|
||||
|
Reference in New Issue
Block a user