Change dhcp_hostname of esp32 in AP_IF mode
Posted: Wed Mar 02, 2022 11:09 am
Hello !
I'd like to know if it is possible to access ESP32's content in access point (AP_IF) mode, using an hostname instead of its IP.
Currently I'm only able to do it in station mode (STA_IF), by setting its hostname using but it doesn't work using AP_IF mode.
The goal of my project is to retrieve user's internet information (ssid and password) to be able to connect in station mode.
To do that, I have to start the ESP in access point mode in order to serve an html page that will retrieve user's information through an html form.
Does anybody know how to do ?
I'd like to know if it is possible to access ESP32's content in access point (AP_IF) mode, using an hostname instead of its IP.
Currently I'm only able to do it in station mode (STA_IF), by setting its hostname using
Code: Select all
wlan.config(dhcp_hostname='hostname')
The goal of my project is to retrieve user's internet information (ssid and password) to be able to connect in station mode.
To do that, I have to start the ESP in access point mode in order to serve an html page that will retrieve user's information through an html form.
Does anybody know how to do ?