Closed PPCM closed 2 years ago
Please look at how to implement this here:
For Arduino IDE https://github.com/arkhipenko/TaskScheduler/tree/master/examples/Scheduler_example21_OO_Callbacks
For Platform io: https://github.com/arkhipenko/TaskScheduler/tree/master/examples/Scheduler_example27_PlatformIO
Hello,
I would to make my dev OOP, so each object need to include
<TaskScheduler.h>
But it fails during the link process. The platform used is a WEMOS D1 MINI ESP32Here is a working example
config.h
main.h
main.c
The compile complete correctly, it produce only one warning (already an issue)
Now if I include
<TaskScheduler.h>
in an other file, the linking process fails for multiple definition of elements In the previous example modify following files main.hA.h
A.cpp
It produces the following error:
This is not the complete error because it is too long, but the idea is here
Is there something wrong in the declaration of prototypes of TaskScheduler? Thanks for your help