def setup_agent(): agent = Popen(["%s/agent-helper.py" % eca.dir()], shell=False, stdout=PIPE, stdin=PIPE, stderr=PIPE) return agent
def setup_agent(use_pin): if use_pin == True: cap = "KeyboardOnly" else: cap = "NoInputNoOutput" agent = Popen(["%s/agent-helper-bt.py" % eca.dir(), "-c", cap], shell=False, stdout=PIPE, stdin=PIPE, stderr=PIPE) return agent
def setup_agent(use_pin): del use_pin # only allow NoInputNoOutput agents to simplify pairing # if use_pin is True: # cap = "KeyboardOnly" # else: cap = "NoInputNoOutput" agent = Popen(["%s/agent-helper-bt.py" % eca.dir(), "-c", cap], shell=False, stdout=PIPE, stdin=PIPE, stderr=PIPE) return agent