Skip to content

Commit b7c1cfb

Browse files
authored
DHCP custom option (esp8266#8582)
* works * fixup! works * back to callbacks * names * daisy chain * seconds * less inline * fix dns setter * might as well keep using initlist /to d-a-v it has automatic storage, here it's the same stack based one (just one less line for us) * shift blame * naming * fix impl * revert to ip4 dns * merge fix * restyle * masking done wrong
1 parent 9e2103f commit b7c1cfb

File tree

9 files changed

+329
-386
lines changed

9 files changed

+329
-386
lines changed

cores/esp8266/LwipDhcpServer-NonOS.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,21 @@ extern "C"
7171
uint32 wifi_softap_get_dhcps_lease_time()
7272
{
7373
auto& server = getNonOSDhcpServer();
74-
return server.get_dhcps_lease_time();
74+
return server.getLeaseTime();
7575
}
7676

7777
bool wifi_softap_set_dhcps_lease_time(uint32 minutes)
7878
{
7979
auto& server = getNonOSDhcpServer();
80-
return server.set_dhcps_lease_time(minutes);
80+
server.setLeaseTime(minutes);
81+
return true;
8182
}
8283

8384
bool wifi_softap_reset_dhcps_lease_time()
8485
{
8586
auto& server = getNonOSDhcpServer();
86-
return server.reset_dhcps_lease_time();
87+
server.resetLeaseTime();
88+
return true;
8789
}
8890

8991
bool wifi_softap_add_dhcps_lease(uint8* macaddr)

0 commit comments

Comments
 (0)