Qt bluetooth with miss-behaving devices

Anton Lundin glance at acc.umu.se
Sat Sep 12 13:07:41 PDT 2015


Hi.

I've bin working on connecting the qtbluetooth code with the configure
dive computer code.

I've noticed that if you work with a miss-behaving device, ei one that
never answers, the read call in qt_serial_read never times out and if
something bad happens you can get stuck in the while loop emiting debug
rows like:
QIODevice::read (QBluetoothSocket): device not open

I tried to hook up a QTimer to the loop there, but I never managed to
get it to work. Could someone who knows how that is supposed to work
take a look at it? Claudiu?


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list