gpepe / esp8266-sendemail

Send email with esp8266 arduino.
20 stars 14 forks source link

Will not compile using board Version 2.5.0 #2

Open git360t opened 5 years ago

git360t commented 5 years ago

Currently this sketch works with esp8266 board Version 2.4.2

It will not compile using board Version 2.5.0 Error compiling for board NodeMCU 1.0 (ESP-12E Module) The compiler error points to line 45 in sendemail.cpp library file C:\Utilities\arduino-1.8.8\portable\sketchbook\libraries\esp8266-sendemail-master\sendemail.cpp:45:10: error: ambiguous overload for 'operator+=' (operand types are 'String' and 'IPAddress') buffer += client->localIP();

inc90 commented 5 years ago

I was able to correct this error by changing one line in sendemail.cpp

....
buffer = F("EHLO ");
buffer += client->localIP();

to

....
buffer = F("EHLO ");
buffer += client->localIP().toString();
detamend commented 5 years ago

Thanks, @inc90 !