Using the ESP32C5 in AP mode (not STA) we need to have the device display HTTP web pages when accessing 'www.config.company.com'.
We have the device in AP mode using the following...
wifi_config_t wifi_config = {
.ap = {
.ssid = "configure",
.ssid_len = strlen(apSSID),
.channel = 1,
.password = "password",
.max_connection = 3,
.authmode = WIFI_AUTH_WPA2_PSK,
.gtk_rekey_interval = 0,
},
};
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_AP));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_AP, &wifi_config));
ESP_ERROR_CHECK(esp_wifi_start());
How do we configure the device to responds to DNS requests to 'www.config.company.com'?
Add DNS entry for ESP32C5 when in AP mode
-
kmiddlekauff
- Posts: 1
- Joined: Tue Mar 24, 2026 6:01 pm
-
nopnop2002
- Posts: 347
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
Re: Add DNS entry for ESP32C5 when in AP mode
You probably want to take a look at https://github.com/espressif/esp-idf/tr ... ive_portal
Who is online
Users browsing this forum: Applebot, PetalBot, Qwantbot and 15 guests
