def connect_device(deviceAddress): try: bluetooth.connect_device(deviceAddress) set_device_trusted(deviceAddress, True) except: return False return True
def connect_device(deviceAddress): bluetooth.connect_device(deviceAddress)