0
Hi,
need to add in a vector<TimedCommand> tCommands;
access references for Timedcommand instances, example:
TimedCommand command1("*.*.*.*.*.*",&sonCommand,"13");
(...)
tCommands.push_back(&command1);
Unfortunately, when I do this happens one no matching function for call to 'std::vector<TimedCommand', std::allocator<TimedCommand>>:: push_back(TimedCommand*)
I’m using the lib Standard C++ for Arduino and Arduino Cron Library. What am I doing wrong?
I think your problem is with typing. You expect to receive a Timedcommand object, and when you pass the reference you are passing a Timedcommand*.
– jlHertel