All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.pires.obd.commands.protocol.TimeoutCommand Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
package com.github.pires.obd.commands.protocol;

/**
 * This will set the value of time in milliseconds (ms) that the OBD interface
 * will wait for a response from the ECU. If exceeds, the response is "NO DATA".
 *
 * @author pires
 * @version $Id: $Id
 */
public class TimeoutCommand extends ObdProtocolCommand {

    /**
     * 

Constructor for TimeoutCommand.

* * @param timeout value between 0 and 255 that multiplied by 4 results in the * desired timeout in milliseconds (ms). */ public TimeoutCommand(int timeout) { super("AT ST " + Integer.toHexString(0xFF & timeout)); } /** *

Constructor for TimeoutCommand.

* * @param other a {@link com.github.pires.obd.commands.protocol.TimeoutCommand} object. */ public TimeoutCommand(TimeoutCommand other) { super(other); } /** {@inheritDoc} */ @Override public String getFormattedResult() { return getResult(); } /** {@inheritDoc} */ @Override public String getName() { return "Timeout"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy