mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-24 08:45:10 +03:00
* 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
55 lines
822 B
C++
55 lines
822 B
C++
#include <LwipDhcpServer.h>
|
|
#include <LwipDhcpServer-NonOS.h>
|
|
|
|
DhcpServer& getNonOSDhcpServer()
|
|
{
|
|
static DhcpServer instance(nullptr);
|
|
return instance;
|
|
}
|
|
|
|
bool DhcpServer::set_dhcps_lease(struct dhcps_lease* please)
|
|
{
|
|
(void)please;
|
|
return false;
|
|
}
|
|
|
|
void DhcpServer::end() { }
|
|
|
|
bool DhcpServer::begin()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
DhcpServer::DhcpServer(netif*) { }
|
|
|
|
DhcpServer::~DhcpServer()
|
|
{
|
|
end();
|
|
}
|
|
|
|
extern "C"
|
|
{
|
|
#include <user_interface.h>
|
|
|
|
bool wifi_softap_dhcps_start(void)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
enum dhcp_status wifi_softap_dhcps_status(void)
|
|
{
|
|
return DHCP_STARTED;
|
|
}
|
|
|
|
bool wifi_softap_dhcps_stop(void)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool wifi_softap_set_dhcps_lease(struct dhcps_lease* please)
|
|
{
|
|
(void)please;
|
|
return true;
|
|
}
|
|
}
|