I have a QSerialPort m_serialPort communicating correctly with a Bluetooth connection. I can close the port from the code using m_serialPort->close() and it works normally.
If I power off the device I can detect that it has gone because I 'ping' my device every second. When I get no answer to my 'ping' I try to close the port but m_serialPort->close() takes 20s to return.
Why does it take 20s?
If this is unavoidable is there another way I can 'kill' the QSerialPort?
Thanks
Bookmarks