Skip to content

Commit

Permalink
Add instructions how to re-enable DHCP (esp8266#2600)
Browse files Browse the repository at this point in the history
In WiFi.config, if we pass 0.0.0.0 for all three parameters (as local_ip, gateway and subnet mask), it will re enable the DHCP. We need to re connect the device to get the IP from router.
  • Loading branch information
Dhruv Acharya authored and igrr committed May 8, 2017
1 parent 2d9e767 commit 97373e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/esp8266wifi/station-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Connecting to sensor-net
.
Connected, IP address: 192.168.1.22
```
Please note that station with static IP configuration usually connects to the network faster. In the above example it took about 500ms (one dot `.` displayed). This is because obtaining of IP configuration by DHCP client takes time and in this case this step is skipped.
Please note that station with static IP configuration usually connects to the network faster. In the above example it took about 500ms (one dot `.` displayed). This is because obtaining of IP configuration by DHCP client takes time and in this case this step is skipped. If you pass all three parameter as 0.0.0.0 ( local_ip, gateway and subnet), it will re enable DHCP. You need to re connect the device to get new IPs.
### Manage Connection
Expand Down

0 comments on commit 97373e7

Please sign in to comment.