qix67 / comfortzone_heatpump

Arduino library to monitor and control Comfortzone EX50 heatpump
GNU General Public License v3.0
8 stars 5 forks source link

Compiling Error ESP32 NodeMCU-32S #12

Closed Eddy0815 closed 11 months ago

Eddy0815 commented 12 months ago

Having following error when trying to compile for NodeMCU-32S with Arduino IDE 2.2.1 Is ther a solution or have i purchased the wrong board?

In file included from C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:36,
                 from C:\Users\xxx\Documents\Arduino\libraries\FastCRC\src/FastCRC.h:51,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_heatpump.h:25,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder.h:4,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder_basic.cpp:3:
C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal.h:137:15: error: conflicting declaration of 'long unsigned int millis()' with 'C' linkage
 unsigned long millis();
               ^~~~~~
In file included from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_frame.h:4,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder_basic.cpp:2:
C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\platform_specific.h:5:22: note: previous declaration with 'C++' linkage
 inline unsigned long millis() {
                      ^~~~~~
In file included from C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:36,
                 from C:\Users\xxx\Documents\Arduino\libraries\FastCRC\src/FastCRC.h:51,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_heatpump.h:25,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder.h:4,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder_status.cpp:3:
C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal.h:137:15: error: conflicting declaration of 'long unsigned int millis()' with 'C' linkage
 unsigned long millis();
               ^~~~~~
In file included from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_frame.h:4,
                 from C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\comfortzone_decoder_status.cpp:2:
C:\Users\xxx\Documents\Arduino\libraries\comfortzone_heatpump\platform_specific.h:5:22: note: previous declaration with 'C++' linkage
 inline unsigned long millis() {
                      ^~~~~~

exit status 1

Compilation error: exit status 1
qix67 commented 11 months ago

Which board settings do you use in arduino, "Arduino ESP32 boards" or "esp32" ?

qix67 commented 11 months ago

Found it, it was esp32.

qix67 commented 11 months ago

Pull the last version, I just fixed the problem

Eddy0815 commented 11 months ago

thx very much! Compiling now working perfect. Waiting for delivery of the ESP32 today or tomorrow to make the first tests this weekend.