Description
Anytime I use wifi in a manner that requires the domain name or hostname to be resolved, such as http.begin(<doman/path/filename>), I get errors like this:
Checking resolution for domain: mizzen.zennora.sv //my debug
E (1776) OPENTHREAD: esp_openthread_task_switching_lock_acquire(38): Failed to acquire the lock because the mutex is not ready
E (1777) OPENTHREAD: esp_openthread_task_switching_lock_release(46): Failed to release the lock because the mutex is not ready
E (1788) OT_DNS64: Cannot find NAT64 prefix
[ 1231][E][NetworkManager.cpp:136] hostByName(): DNS Failed for 'mizzen.zennora.sv' with error '-54'
Domain resolved to IP: 0.0.0.0 //my debug
I tried this on both an Xiao esp32-c6 and espressif esp32-c6 and changed the boards accordingly in the platform.ini. Same behavior.
It all works if I swap out the domain name with the IP. Same behavior when connecting to a mqtt broker or if I try to access a local hostname: IP only.
Same code, different chip (Xiao esp32-S3,) no problems. My code was ported from use with Arduino IDE, where it worked as expected.