Added NS and GW for DHCP server configuration

This commit is contained in:
Sashka 2017-10-11 01:05:41 -04:00 committed by GitHub
parent 563e514625
commit c8f11244ff

View file

@ -183,6 +183,8 @@ void wifiInit() {
ip_addr_t first_client_ip; ip_addr_t first_client_ip;
IP4_ADDR(&first_client_ip, 172, 16, 0, 2); IP4_ADDR(&first_client_ip, 172, 16, 0, 2);
dhcpserver_start(&first_client_ip, 4); dhcpserver_start(&first_client_ip, 4);
dhcpserver_set_dns(&ap_ip.ip);
dhcpserver_set_router(&ap_ip.ip);
break; break;
case STATION_MODE: case STATION_MODE:
break; break;