Change dhcp_hostname of esp32 in AP_IF mode

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ThomasP
Posts: 5
Joined: Wed Mar 02, 2022 10:35 am

Change dhcp_hostname of esp32 in AP_IF mode

Post by ThomasP » 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

Code: Select all

wlan.config(dhcp_hostname='hostname')
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 ? :)

Post Reply