compile alright
try chthdsleepmilliseconds
implement bpm
add mutex when reading/sending data
use semaphore and sys time
working but not optimized #33