LWClock icon indicating copy to clipboard operation
LWClock copied to clipboard

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

Open JureqB opened this issue 1 year ago • 1 comments

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

JureqB avatar Feb 13 '24 16:02 JureqB

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

miamijerry avatar May 24 '24 08:05 miamijerry