com.github.pires.obd.commands.protocol.SelectProtocolCommand Maven / Gradle / Ivy
package com.github.pires.obd.commands.protocol;
import com.github.pires.obd.enums.ObdProtocols;
/**
* Select the protocol to use.
*/
public class SelectProtocolCommand extends ObdProtocolCommand {
private final ObdProtocols protocol;
/**
* @param protocol a {@link com.github.pires.obd.enums.ObdProtocols} object.
*/
public SelectProtocolCommand(final ObdProtocols protocol) {
super("AT SP " + protocol.getValue());
this.protocol = protocol;
}
@Override
public String getFormattedResult() {
return getResult();
}
@Override
public String getName() {
return "Select Protocol " + protocol.name();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy