Added NS and GW for DHCP server configuration
This commit is contained in:
parent
563e514625
commit
c8f11244ff
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue