I would appreciate it if some of you could help with some advice. I am learning pys60 for a project. I have a couple of problems using bt_discover. First step, I am essentially trying to get two N97s to talk via bluetooth without user intervention.
I have just started the project and so, first thing I am trying to do something very simple. I use bt_discover() to discover a few devices and then, I select one of them and print the bluetooth address of the device on the screen. But while doing this the bt_discover() is not completing at all. After I select any of the discovered devices, it waits for 5-10 secs and then prints the error: line 15 in <module> addr,services=socket.bt_discover() error:(0,'Error')
The code I used is as follows:
import btsocket as socket
appuifw.app.title = u"bt mob to ext"
appuifw.app.exit_key_handler = exit_key_handler
script_lock = e32.Ao_lock()
sock = socket.socket(socket.AF_BT,socket.SOCK_STREAM)
appuifw.note(u"socket created", 'info')
addr,services = socket.bt_discover()
thanks in advance.