this is the code that doesn't appear to work. even though it used to however if i just make a new file with socket.socket(socket.AF_BT, socket.SOCK_STREAM) then do bt_discover then it works.
btSocket = socket.socket(socket.AF_BT, socket.SOCK_STREAM) #create bluetooth socket
if mac_address == '':
address,services = socket.bt_discover() #search bluetooth devices
print "Discovered: %s, %s"%(address, services)
mac_address = (address, services.values())
if appuifw.query(u"Do you want to always connect to this device?", "query") == True:
f = open("c:\\mac_address", 'wb')