com.github.pires.obd.commands.protocol.DescribeProtocolCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obd-java-api Show documentation
Show all versions of obd-java-api Show documentation
OBD Java API compatible with ELM327.
package com.github.pires.obd.commands.protocol;
import com.github.pires.obd.enums.AvailableCommandNames;
/**
* Describe the current Protocol.
* If a protocol is chosen and the automatic option is
* also selected, AT DP will show the word 'AUTO' before
* the protocol description. Note that the description
* shows the actual protocol names, not the numbers
* used by the protocol setting commands.
*
* @author pires
* @version $Id: $Id
* @since 1.0-RC12
*/
public class DescribeProtocolCommand extends ObdProtocolCommand {
/**
* Constructor for DescribeProtocolCommand.
*/
public DescribeProtocolCommand() {
super("AT DP");
}
/** {@inheritDoc} */
@Override
public String getFormattedResult() {
return getResult();
}
/** {@inheritDoc} */
@Override
public String getName() {
return AvailableCommandNames.DESCRIBE_PROTOCOL.getValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy