Im doing project which connect a bluetooth module to development board. unfortunely, my python code couldn't discover bluetooth devices. Can anyone help me to check my code ? thx you


Code:
import socket,appuifw,e32


def bt_socket_connect(target=''):
address, services= socket.bt_discover()

if len(services) > 1:
choices = services.keys()
choices.port()
choice = appuifw.popup_menu([unicode(services[x])+":
...