Gixy31 / ESP32-PoolMaster

ESP32 version of PoolMaster from Loic74650
56 stars 18 forks source link

I can't compile code error: aggregate 'tm timeinfo' #1

Closed drivers1 closed 3 years ago

drivers1 commented 3 years ago

Hi,

I am trying to compile your code, but I have find several problems: (Fixed) Can't find pump.h (result downloaded from logic code) (Fixed) Cannot find ADS1115 @ 1.0.0 from lib_deps (it generates an error that it cannot find the library ... but I have commented and downloaded it working)

Pending solution: src \ Setup.cpp: 44: 4: error: aggregate 'tm timeinfo' has incomplete type and cannot be defined tm timeinfo; ^ Compiling .pio \ build \ serial_upload \ lib714 \ Easy Nextion Library \ readCustomCommands.cpp.o *** [.pio \ build \ serial_upload \ src \ Setup.cpp.o] Error 1

Can you help me?

Gixy31 commented 3 years ago

Hello, Pump: https://github.com/Loic74650/PoolMaster ADS1115: download it here: https://lygte-info.dk/project/ADS1115Library%20UK.html (not in GitHub)

Time and time is a long story... You have first to rename Time.h in _Time.h (Windows does'nt make difference between Time.h and time.h).

I recommend also use of this library: https://github.com/stickbreaker/OneWire which has a workaround for the ESP32

A new version is coming today, with a slightly modified timing of tasks in order to have a nice spreading of tasks along the cycle.

Gixy31 commented 3 years ago

You should have a library called Time (paulstoffregen/Time @ 1.6). So in the folder of this library there's a header file called Time.h to rename in _Time.h. This folder is most probably in .pio/libdeps/serial_upload/Time, if you do not use the extra_libs folder in platformio.ini. The problem is that there is another header called time.h which is in the framework_arduinoespressif32 directory which must be included to declare the tm structure, but this Time.h file (which in turn includes time.h) put some garbage with the precompiler.

drivers1 commented 3 years ago

Solved!!! Thank you very much!!!

Other question. Could you share the file of the board "PoolMaster" you have designed? It would be great for me to know how are connected the sensors to esp32 and possibly to make one so that everything is more organized.

Regards!!

Gixy31 commented 3 years ago

OK. I'll do that later. I close the issue. Best Regards

Gixy31 commented 3 years ago

pdf of the board added to repository.