Closed GoogleCodeExporter closed 8 years ago
Hmm actually I have to put several time.sleep()
statements in to get the right answer:
---8<---------------------------------------------------
import binascii
from bluetooth import *
socket = BluetoothSocket( RFCOMM )
socket.connect( ("32:32:XX:XX:XX:XX", 1) )
time.sleep(1)
print "sending start measure command"
socket.send( binascii.a2b_hex("FD15040D7700500600018F") )
time.sleep(1)
print "response from sensor:"
print binascii.b2a_hex( socket.recv(7) )
---8<---------------------------------------------------
Regards, Markus
Original comment by mhubig
on 25 Sep 2009 at 3:18
Try this in a recent Ubuntu/kernel/BlueZ combination. The
examples/simple/rfcomm-{client,server}.py does
pretty much the same thing (client blocks around connect()) and worked
perfectly. (Ubuntu 10.04, PyBluez 0.18).
If it still problematic in your computer, test whether the example works ok.
Original comment by elvis.pf...@gmail.com
on 31 May 2010 at 4:33
I need feedback on this, otherwise I will close the issue as "works for me".
Original comment by elvis.pf...@gmail.com
on 5 Jul 2010 at 1:11
Invalid because refers to a pretty old version (0.14). Recent versions don't
reproduce the bug. Upgrade to 0.18 or CVS.
Original comment by elvis.pf...@gmail.com
on 13 Jul 2010 at 3:23
Original issue reported on code.google.com by
mhubig
on 25 Sep 2009 at 3:09