LWClock
LWClock copied to clipboard
Can't compile V2.2 or V2.1
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')
I had the same problem. Solved by rolling back to Arduino IDE 1.18.10 and using esp8266 library [Release 2.7.4]
Its over a year now since I opened this issue and there's no change. I'm guessing this project has been abandoned.
change; SSDP.setModelURL("http://"+(WiFi.status() != WL_CONNECTED ? WiFi.softAPIP() : WiFi.localIP())); to; SSDP.setModelURL("http://" + WiFi.localIP().toString());