8000 Initialize SoftAP DhcpServer object on demand by mcspr · Pull Request #8546 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Initialize SoftAP DhcpServer object on demand #8546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
existing name :/
  • Loading branch information
mcspr committed Apr 19, 2022
commit 92d7cd6a29d75b3694c2e5c9fea062a42e01d353
6 changes: 3 additions & 3 deletions libraries/ESP8266WiFi/examples/StaticLease/StaticLease.ino
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ void setup() {
...
any client not listed will use next IP address available from the range (here 192.168.0.102 and more)
*/
auto& server = dhcpSoftAP();
server.add_dhcps_lease(mac_CAM); // always 192.168.0.100
server.add_dhcps_lease(mac_PC); // always 192.168.0.101
auto& dhcpServer = dhcpSoftAP();
dhcpServer.add_dhcps_lease(mac_CAM); // always 192.168.0.100
dhcpServer.add_dhcps_lease(mac_PC); // always 192.168.0.101
/* Start Access Point. You can remove the password parameter if you want the AP to be open. */
WiFi.softAP(ssid, password);
Serial.print("AP IP address: ");
Expand Down
0