<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def device_connect(device_id):
 """ Force a connection attempt via HTTP GET. """

    success = False
    if device_id in devices:
        devices[device_id].connect()
        success = True
    return jsonify(success=success)