Search found 3 matches

by cpersoz
Sun Feb 09, 2020 3:35 pm
Forum: ESP-IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 22562

Re: Problem with xTaskCreate in C++...

Thanks again markkuk, I messed up on that point, now it build correctly, but I haven't test it to see if that is working.

Do I also need to make a wrapper for the taskHandle to kill the xTaskCreate?

Thanks
by cpersoz
Sat Feb 08, 2020 12:39 pm
Forum: ESP-IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 22562

Re: Problem with xTaskCreate in C++...

Oh indeed, thanks @markkuk, I haven't noticed it! That solve a part of the problem. It remains one issue on the wrapper on my class. I'm getting the following error on my xTaskCreatePinnedToCore, and it seems related to the trick described on this thread. Cannot convert 'void (Channel::*)()' to 'Tas...
by cpersoz
Fri Feb 07, 2020 3:00 pm
Forum: ESP-IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 22562

Re: Problem with xTaskCreate in C++...

@stefanoxjx, did you end up with a solution to have a running wrapper for xTaskCreate inside a C++ class? I'm getting the same error as you and I didn't find a way to use xTaskCreate inside a C++ class yet. libs/Channel/src/Channel.cpp:279:25: error: 'reintrepret_cast' was not declared in this scope...