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.
The newest version!
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
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.
*
* @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