0 votes
asked in WeatherStationClassic by (120 points)

I have bought the kit from Amazon.

I have followed all the steps of the Guide Manual but there was an error during the compilation process. The message is:

Arduino: 1.8.8 (Windows Store (Windows 10), Placa:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" 

C:\Users\Laboratório\Documents\Arduino\libraries\esp8266-weather-station-master\src\TimeClient.cpp: In member function 'long int TimeClient::getCurrentEpochWithUtcOffset()': 

C:\Users\Laboratório\Documents\Arduino\libraries\esp8266-weather-station-master\src\TimeClient.cpp:124:67: error: invalid operands of types 'double' and 'long int' to binary 'operator%' 

   return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L; 

exit status 1

Erro compilando para a placa NodeMCU 1.0 (ESP-12E Module)

1 Answer

0 votes
answered ago by (2.8k points)
You should check in the Boards Manager what version of the ESP8266 core you are using? 2.4.2?

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.