diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-07-23 15:19:04 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-07-24 16:26:54 +0200 |
commit | de6e3732ab6884e8f650cbbf99380800dd305636 (patch) | |
tree | a68a5f23ccd7a7732e38ccf831cf1c2ae48a8c4b /dist | |
parent | d3298bd60f7580a22b95d34120cf57270a7c5888 (diff) |
Move socket workaround into own fctn and fix possible channel mismatch
Previously the remote rfcomm channel was fixed to 1 which may not
always match the correct rfcomm port.
At the end of the day this is still a workaround for failure to connect
when socket creation via UUID fails. We assume that the remote rfcomm
service can be reached via the channel number.
There is the remote chance that we connect to the wrong remote channel
because getServiceChannel() fails and we attempt to connect to the
hardcoded channel 1. However the workaround significantly reduces the
chance of failure as a few devices (especially on the low end margin)
cannot successfully connect via the UUID.
The patch improves code readability and formatting too.
Task-number: QTBUG-40172
Change-Id: Iae90252c877ca13953a81ea1ed83cc2c73abdf2a
Reviewed-by: firatagdas <firatagdas@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions