I wrote an application that connects to two BLE devices (an Arduino with an accelerometer). Very simply, the program works like this:
- App send a command to Dev (start acquire);
- Dev acquires the data;
- Dev send to App that it has finished the acquisition;
- Dev transmits the data to the App (n seconds);
- App plots the data of Devs;
Since there are two (or more) Devs, the acquisition start time between them is different (200-300 milliseconds) and the total reception time is high because the second Dev (and third, fourth, ...) must wait for the first Dev to finish transmitting. Each Dev has a dedicated object with method, properties and variables so there is no shared data. What multithreading technique can I use to solve this problem?
Thanks, Paolo.