Skip to content

Commit 97373e7

Browse files
Dhruv Acharyaigrr
Dhruv Acharya
authored andcommitted
Add instructions how to re-enable DHCP (#2600)
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.
1 parent 2d9e767 commit 97373e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/esp8266wifi/station-class.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Connecting to sensor-net
137137
.
138138
Connected, IP address: 192.168.1.22
139139
```
140-
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.
140+
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.
141141
142142
143143
### Manage Connection

0 commit comments

Comments
 (0)