Page 1 of 1

Hostname Setting in ESP32 ESP-IDF

Posted: Fri Nov 18, 2022 2:38 pm
by robocircuits
Hi Everyone
I have an esp-idf code. I created a captive portal to set my variables on it. And whenever i add the assigned IP address of esp into my web browser it shows like this.
Screenshot from 2022-11-18 19-59-33.png
Screenshot from 2022-11-18 19-59-33.png (13.72 KiB) Viewed 1182 times
I added some lines of code to add a custom hostname to my esp32
Screenshot from 2022-11-18 20-01-45.png
Screenshot from 2022-11-18 20-01-45.png (51.61 KiB) Viewed 1182 times
The hostname setting is successful according to the logs
Screenshot from 2022-11-18 20-03-11.png
Screenshot from 2022-11-18 20-03-11.png (24.09 KiB) Viewed 1182 times
But when I enter this in my browser I never get my esp captive portal
Screenshot from 2022-11-18 20-03-11.png
Screenshot from 2022-11-18 20-03-11.png (24.09 KiB) Viewed 1182 times

I want my captive portal to come whenever I enter it like this. It is a screenshot from the home assistant.

Code: Select all

homeassistant.local:8123
Kindly help me with this

Re: Hostname Setting in ESP32 ESP-IDF

Posted: Sat Nov 19, 2022 1:22 am
by ESP_Sprite
You probably need to look into MDNS.