Open GoogleCodeExporter opened 8 years ago
I was able to get it working by changing PORT_ANY to 3.... I think maybe the
example should be changed?
Original comment by geoff.fl...@gmail.com
on 11 Nov 2012 at 5:22
Finally!!!! This worked for me as well. It looks like the PORT_ANY was
picking a number that already represented a service running on my server's
Bluetooth.
3 might not be the secret sauce for everyone, but putting in an ID that isn't
currently being used did fixed my problem.
Original comment by lukedu...@gmail.com
on 1 Aug 2013 at 11:37
The problm is that sever uses already taken port.
Needs investigation where the issue is - pybluez or bluez
And if there is similiar issue on Windows?
Original comment by karu...@wp.pl
on 19 Jan 2014 at 6:04
Just an update on Windows PORT_ANY works fine and returns next available port.
On linux it works like this:
- _get_available_port from bluez.py is run for PORT_ANY and it just tries to bind to ports from 1 to 30.
- bind return value in C code is properly handled by PyErr_SetFromErrno(in btmodule.c)
And it is possible to make example rfcomm-server.py run on already taken port -
see attached log with inquiry.
So it needs confirmation but looks like issue in bluez
Original comment by karu...@wp.pl
on 2 Feb 2014 at 8:22
Attachments:
Just for reference:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/897255
It seems it is reproducible on lightblue too,
and the issue is just with port 1
Original comment by karu...@wp.pl
on 2 Feb 2014 at 10:16
Issue 61 has been merged into this issue.
Original comment by karu...@wp.pl
on 16 Jul 2014 at 3:58
Original comment by karu...@wp.pl
on 10 Feb 2015 at 11:01
Original issue reported on code.google.com by
geoff.fl...@gmail.com
on 11 Nov 2012 at 4:28