Set IPaddress, gateway and subnet mask in SOFT AP mode

Massimo87
Posts: 3
Joined: Mon Mar 21, 2022 2:19 pm

Set IPaddress, gateway and subnet mask in SOFT AP mode

Postby Massimo87 » Mon Mar 21, 2022 2:33 pm

Hi,

I cant find a way to set the IPaddress the gateway and the subnet mask (when in AP mode).
Anyone know how to do it?

NOTE:
In Arduino-ESP32-idf there is a function that do this:

IPAddress local_ip(192, 168, 10, 1);
IPAddress local_mask(255,255,255,0);
IPAddress gateway(192, 168, 10, 1);

WiFi.softAPConfig(local_ip,gateway,local_mask);


so i think that it must be possible do it also in the ESP32-idf official development framework...

Thanks

Who is online

Users browsing this forum: Majestic-12 [Bot] and 108 guests