Turning off gateway options in DHCP when operating Pico W in AP mode. #2014
Unanswered
the-maldridge
asked this question in
Q&A
Replies: 1 comment 3 replies
-
There are no APIs presently to support this, but if you want to try your hand at defining them and making a PR I'd be happy to take a look at it! Probably just need to isolate arduino-pico/libraries/WiFi/src/dhcpserver/dhcpserver.c Lines 278 to 279 in c670f66 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The title pretty much sums it up, but I'm trying to figure out how to suppress handing out a default gateway when operating in AP mode. I can see in https://github.com/earlephilhower/arduino-pico/blob/master/libraries/WiFi/src/dhcpserver/dhcpserver.c where the options get defined and written, but I don't see any entrypoints to that code to influence what options get sent. I'm ultimately trying to work out how to disable both the gateway option and the DNS option, since I want to be able to connect to a network the Pico is presenting from a device with two PHYs and if the Pico offers these parameters it will interfere with the working network configuration on such a host.
Beta Was this translation helpful? Give feedback.
All reactions