Hope someone can point me the right way? I have a programme running on a n70 which requires two bluetooth serial ports to run at the same time. The first I have had running no problem, the second works ok untill I try to read it using the readline() function.
Here is the code I'm using for the second connection;
As you might guess its connecting a load cell to the phone using a serial bluetooth module and pic. The pic responds to the print>>scale,"W" so I know its connected ok, I've also checked the output in hyperterminal so I know its sending somthing back but the programme stalls at heavy=scale.readline()
appuifw.note(u"Connecting to weigher")
target1= (address1, services1.values())
conn1 = socket.socket(socket.AF_BT, socket.SOCK_STREAM)
scale = conn1.makefile("rW",0)
appuifw.note(u"Blue weigher connected")
appuifw.note(u"Unable to find weigher")
print >> scale,"W"
heavy = scale.readline()
The first connection is working when I try to use this, however disabling that connection makes no difference. Any ideas?