Disable OFFER_Router

sorenhl
Posts: 20
Joined: Sun Jun 03, 2018 9:34 pm

Disable OFFER_Router

Postby sorenhl » Fri Jun 08, 2018 9:39 pm

Hi,

I am trying to port a esp8266 project to ESP32, but i am facing issues with one command:

Code: Select all

uint8 mode = 0;
wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &mode);


It does so iPhones can still surf the internet while being connected to the AP.

It seems like the functionality is inside "apps/dhcpserver.h", but I cannot really figure out how to use the dhcps_set_option_info.

Any idea how to do this now? I have been trying and failing for hours, so any help would be greatly appreciated.


/Søren

WiFive
Posts: 1820
Joined: Tue Dec 01, 2015 7:35 am

Re: Disable OFFER_Router

Postby WiFive » Sat Jun 09, 2018 9:47 am

Try

Code: Select all

uint8_t val = 0;
tcpip_adapter_dhcps_option(TCPIP_ADAPTER_OP_SET, ROUTER_SOLICITATION_ADDRESS, &val, sizeof(dhcps_offer_t));

sorenhl
Posts: 20
Joined: Sun Jun 03, 2018 9:34 pm

Re: Disable OFFER_Router

Postby sorenhl » Sat Jun 09, 2018 8:45 pm

The code you posted works perfect, thank you so much!

If anybody else is trying this, remember to stop, apply line, start the dhcp server for it to work :D

Who is online

Users browsing this forum: No registered users and 1 guest