mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Remove some explicit IPAddress casts (#5639)
This commit is contained in:
parent
b03eb5ea0a
commit
9adda8085a
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ void CaptivePortal::start() {
|
|||
this->dns_server_ = make_unique<DNSServer>();
|
||||
this->dns_server_->setErrorReplyCode(DNSReplyCode::NoError);
|
||||
network::IPAddress ip = wifi::global_wifi_component->wifi_soft_ap_ip();
|
||||
this->dns_server_->start(53, "*", IPAddress(ip));
|
||||
this->dns_server_->start(53, "*", ip);
|
||||
#endif
|
||||
|
||||
this->base_->get_server()->onNotFound([this](AsyncWebServerRequest *req) {
|
||||
|
|
|
@ -19,7 +19,7 @@ class MQTTBackendESP8266 final : public MQTTBackend {
|
|||
void set_will(const char *topic, uint8_t qos, bool retain, const char *payload) final {
|
||||
mqtt_client_.setWill(topic, qos, retain, payload);
|
||||
}
|
||||
void set_server(network::IPAddress ip, uint16_t port) final { mqtt_client_.setServer(IPAddress(ip), port); }
|
||||
void set_server(network::IPAddress ip, uint16_t port) final { mqtt_client_.setServer(ip, port); }
|
||||
void set_server(const char *host, uint16_t port) final { mqtt_client_.setServer(host, port); }
|
||||
#if ASYNC_TCP_SSL_ENABLED
|
||||
void set_secure(bool secure) { mqtt_client.setSecure(secure); }
|
||||
|
|
Loading…
Reference in a new issue