I ran into some very frustrating, mysterious errors wile trying to use MDNS.queryService() in the ESP8266 Arduino SDK. What should have been a simple call to attempt to resolve an mDNS name turned into an exception and stack dump.
Code that looked like this:
led to this:
Turned out there’s a simple solution to this problem.
I’d forgotten to call
1
MDNS.begin()
first. This prepares the MDNS class for further calls, and the class isn’t written to detect the fact that
1
begin()
wasn’t called already. Once I made sure to call
1
MDNS.begin()
before calling
1
MDNS.queryService()
the problem went away and the code worked properly.
Adafruit now has listings for the ESP32-H2-MINI-1 module and ESP32-H2-DevKitM-1. The ESP32-H2 is Espressif’s new CPU that has Thread, Zigbee, Bluetooth 5 and...
I was lucky enough to get a couple of ESP32-C6 devkits through AliExpress when Espressif recently made them available. If you’re thinking about getting one t...