Just to double check, I could declare a xTask as something else than void and get a return from it? Like:
bool xTaskWhatever (void *pvParameters)
{
return true;
}
…
Serial.print( "Status is " ); Serial.print( xTaskWhatever );
Functions in the api that begin with v return void. If the next word in the name is Task, then they are task related and are defined in task.h
Your functions that define tasks do not need to use this convention, and I would actually suggest NOT doing so, to avoid naming issues.
Tasks themselves never ‘return’ a value as tasks should never return (if they are done, they should just delete themselves). Also, just calling a function with a name with Task, won’t make it a task. You make a task by calling one of the xTaskCreate functions.
No - as @richard-damon already pointed out it’s just a simplified (I’d say a good, pragmatic) hungarian notation. Nothing special - just a naming convention.
I was bit confused by