xTaskCreate: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}'
Posted: Wed Jul 01, 2020 10:24 pm
Hello,
i can not figure out what am i doing incorrectly here. Please advise.
i can not figure out what am i doing incorrectly here. Please advise.
Code: Select all
void publish_data() {
....
}
void setup () {
....
TaskHandle_t xHandle = NULL;
BaseType_t xReturned = xTaskCreate(&publish_data, (const char*) "Task", 4048, (void*) 1, NULL, &xHandle);
.....
src/main.cpp: In function 'void setup()':
src/main.cpp:125:109: error: invalid conversion from 'void (*)()' to 'TaskFunction_t {aka void (*)(void*)}' [-fpermissive]
BaseType_t xReturned = xTaskCreate(&publish_data, (const char*) "Task", 4048, (void*) 1, NULL, &xHandle);