Lightwell-bg / LWClock

Multifunctional clock based on ESP8266 and MAX79xxx for Home Automation (IoT)
GNU General Public License v3.0
41 stars 11 forks source link

unable to compile: exit status 1 ambiguous overload for 'operator #10

Open JureqB opened 4 months ago

JureqB commented 4 months ago

I tried on two different computers, reinstalling Arduino and all compatible libraries, but in the end I got the same error:

WIFI_SSDP:13:29: error: ambiguous overload for 'operator+' (operand types are 'const char [8]' and 'IPAddress') 13 SSDP.setModelURL("http://"+(WiFi.status() != WL_CONNECTED ? WiFi.softAPIP() : WiFi.localIP())); ~~~^~~~~~~~~~~~~~~~~
const char [8] IPAddress
miamijerry commented 1 month ago

change; SSDP.setModelURL("http://"+(WiFi.status() != WL_CONNECTED ? WiFi.softAPIP() : WiFi.localIP())); to; SSDP.setModelURL("http://" + WiFi.localIP().toString());