Saturday, February 12, 2005

Amazing Python!

I'm accessing Python console running on my 6600 through my Linux box... amazing!

Makentoo bluetooth # sdptool add --channel=1 SP
Serial Port service registered
Makentoo bluetooth # sdpd
Makentoo bluetooth # rfcomm listen /dev/rfcomm0 1
Waiting for connection on channel 1
Connection from 00:0E:6D:93:40:7E to /dev/rfcomm0
Press CTRL-C for hangup
....


Open another xterm & "cu -l /dev/rfcomm0"

& voila!

>>> hosts=[u"maku",u"makentoo"]
>>> appuifw.popup_menu(hosts,u"select host")
0
>>> import socket
>>> sock=socket.socket(socket.AF_BT,socket.SOCK_STREAM)
>>> socket.bt_discover()
..........

Technology is amazing... truly amazing!

No comments: