I thought using <fetch.h> would save me quite a bit of time, but the darn thing won't compile. After a few hours of digging into the library files, I'm honestly stumped as to what it is griping about. These look like a valid reference/pointer to me, but clearly something has changed in the last few versions of either ESP32's mDNS or something ...
Anyone know what is up with this IP Address issue?
(Side note: For an IoT platform, it sure is hard to make use of the "I." More standardized libraries to handle http(s) or even just IP address constructs sure seem like they would be a big help.)
c:\Users\z\OneDrive\Documents\Arduino\libraries\Fetch\src\utils\Url\LCBUrl\LCBUrl.cpp: In member function 'IPAddress LCBUrl::getIP(const char*)':
c:\Users\z\OneDrive\Documents\Arduino\libraries\Fetch\src\utils\Url\LCBUrl\LCBUrl.cpp:634:48: error: cannot convert 'ip4_addr*' to 'esp_ip4_addr_t*' {aka 'esp_ip4_addr*'}
esp_err_t err = mdns_query_a(hn, 2000, &addr);
^~~~~
In file included from C:\Users\z\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\ESPmDNS\src/ESPmDNS.h:46,
from c:\Users\z\OneDrive\Documents\Arduino\libraries\Fetch\src\utils\Url\LCBUrl\LCBUrl.h:41,
from c:\Users\z\OneDrive\Documents\Arduino\libraries\Fetch\src\utils\Url\LCBUrl\LCBUrl.cpp:32:
C:\Users\z\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32/include/mdns/include/mdns.h:652:83: note: initializing argument 3 of 'esp_err_t mdns_query_a(const char*, uint32_t, esp_ip4_addr_t*)'
esp_err_t mdns_query_a(const char * host_name, uint32_t timeout, esp_ip4_addr_t * addr);
~~~~~~~~~~~~~~~~~^~~~