LWClock icon indicating copy to clipboard operation
LWClock copied to clipboard

Can't compile V2.2 or V2.1

Open FrankHovis opened this issue 3 years ago • 3 comments

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 ......\LWClock-master\lw-clock\LWClockV2.2\WIFI_SSDP.ino:13:29: note: candidate: 'operator+(const char*, int)' (built-in) 13 | SSDP.setModelURL("http://"+(WiFi.status() != WL_CONNECTED ? WiFi.softAPIP() : WiFi.localIP())); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

exit status 1 ambiguous overload for 'operator+' (operand types are 'const char [8]' and 'IPAddress')

FrankHovis avatar Jan 19 '22 19:01 FrankHovis

I had the same problem. Solved by rolling back to Arduino IDE 1.18.10 and using esp8266 library [Release 2.7.4]

H0J0 avatar Feb 15 '22 11:02 H0J0

Its over a year now since I opened this issue and there's no change. I'm guessing this project has been abandoned.

FrankHovis avatar Feb 20 '23 21:02 FrankHovis

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