@app.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>def device_connect(device_id):
success = False<EOL>if device_id in devices:<EOL><INDENT>devices[device_id].connect()<EOL>success = True<EOL><DEDENT>return jsonify(success=success)<EOL>
Force a connection attempt via HTTP GET.