Skip to content

Commit

Permalink
ESP8266: Explicitly start DHCP client if address is not static
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jun 26, 2021
1 parent d6a1a31 commit 5d9f876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/esp8266/esp_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ bool mgos_wifi_dev_sta_setup(const struct mgos_config_wifi_sta *cfg) {
}
LOG(LL_INFO, ("WiFi STA IP: %s/%s gw %s", cfg->ip, cfg->netmask,
(cfg->gw ? cfg->gw : "")));
} else {
wifi_station_dhcpc_start();
}

if (mgos_conf_str_empty(cfg->user) /* Not using EAP */ &&
Expand Down

0 comments on commit 5d9f876

Please sign in to comment.