Hostname Setting in ESP32 ESP-IDF

robocircuits
Posts: 1
Joined: Fri Nov 18, 2022 2:23 pm

Hostname Setting in ESP32 ESP-IDF

Postby robocircuits » Fri Nov 18, 2022 2:38 pm

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 1180 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 1180 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 1180 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 1180 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

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: Hostname Setting in ESP32 ESP-IDF

Postby ESP_Sprite » Sat Nov 19, 2022 1:22 am

You probably need to look into MDNS.

Who is online

Users browsing this forum: No registered users and 110 guests