ESP32: mDNS address resolution
Vložit
- čas přidán 7. 08. 2024
- In this video we will learn how to use mDNS to resolve the address of a HTTP web server hosted by the ESP32.
This means that we don't need to know the actual IP address of the ESP32 to reach the server it is hosting since mDNS will allow us to do the resolution of a known hostname into the IP address of the device.
Another big advantage of mDNS is that it doesn't need a dedicated infra-structure for the name resolution, like a traditional DNS server.
You can get the complete code from this written tutorial at my blog: techtutorialsx.com/2020/04/17...
Setting up HTTP web server (written post): techtutorialsx.com/2017/12/01...
Setting up HTTP web server (video): • ESP32 Arduino HTTP web...
IDF mDNS documentation: docs.espressif.com/projects/e...
Bounjour (for Windows): support.apple.com/downloads/b...
Avahi (for Linux): github.com/lathiat/avahi - Věda a technologie
Can the async library do captive portals?
is there anything I can do to redirect a website using esp8288?
Do you by chance tested if that works for Android/iPhone out of the box? I want to create an AP with my phone and use mDNS to resolve the ESP32 which connects to it.
I will answer that myself. No. Android as the only platform does not and issues have been flooded for at least 8 years now, with zero reaction from Google. Most prominent issue: issuetracker.google.com/issues/140786115
I already have a website, is it possible to display the information of ESP32 (temperature ...) in my own DNS? And in real time?
You can use Mqtt protocol or websockets for realtime connection for to connect the esp to your website, that depends if your website permits to supports those protocols, i hope the answer helps you
Does this work in AP mode?
I'm wondering this too. I can't get mDNS to work unless I'm doing something wrong.
I am using a ESP32 camera. I don`t know the reason why but it does not even upload the code, any idea why?