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

Can't compile V2.2 or V2.1 #7

Open FrankHovis opened 2 years ago

FrankHovis commented 2 years ago
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')

H0J0 commented 2 years ago

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

FrankHovis commented 1 year ago

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

miamijerry commented 1 month ago

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