User Tools

Site Tools


bluetooth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bluetooth [2010/06/26 14:48] – created suapapabluetooth [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 19: Line 19:
 $ sudo rfcomm bind /dev/rfcomm0  00:07:7F:41:42:16 $ sudo rfcomm bind /dev/rfcomm0  00:07:7F:41:42:16
 </code> </code>
 +
 +====== lightblue. python-way ======
 +<code python>
 +>>> import lightblue as lb
 +>>> lb.finddevices()
 +[('60:D0:A9:31:17:D4', 'SPH-W7700(88**)', 5898756), ('00:07:7F:41:42:16', 'myBluetooth-EX', 7936)]
 +>>> lb.findservices('00:07:7F:41:42:16')
 +[('00:07:7F:41:42:16', 1, 'Dev B')]
 +>>> s.connect(('00:07:7F:41:42:16', 1))
 +>>> s.send("#MFF\xff\xff")
 +5
 +</code>
 +[[http://lightblue.sourceforge.net/|lightblue offcial site]]
 +
 +  *[[http://techblog.textcube.com/102|]]
  
 <code bash> <code bash>
bluetooth.1277563689.txt.gz · Last modified: 2013/08/03 05:04 (external edit)