Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago. This question has been closed. Reason: Opinion based - no single answer
Threads: Functions with parameters
Hello mbed-community In my project I have two threads, one for the main attraction and the second one for my bluetooth-connection-ability. My Project, to be specific, is a led-matrix with a bluetooth module.
Now here's the problem, the function, which is being called with the bluetooth-Thread contains parameters, which I'm not able to pass.
My Threads and the function:
void bluetooth_Matrix(int m_height,int m_length) {/*Stuff*/} Thread thread_bluetooth(bluetooth_Matrix); //After Lurking through stack overflow Thread thread_bluetooth(bluetooth_Matrix,m_height,m_length);
Is it even possible to pass arguments through a thread initialisation? If yes, how can it be done?