zhang
6 小时以前 70930071a49190f414c8d8bc9c9e9795a4096739
zy-acs-charge/src/main/java/com/zy/acs/charge/ChargeCoreService.java
@@ -1,4 +1,27 @@
package com.zy.acs.charge;
import com.zy.acs.charge.model.ChargerStatus;
/**
 * 所有充电桩都实现这个接口
 */
public interface ChargeCoreService {
    boolean connect() throws Exception;
    void disconnect();
    boolean isConnected();
    boolean startCharging() throws Exception;
    boolean stopCharging() throws Exception;
    ChargerStatus getStatus() throws Exception;
    boolean setVoltage(int voltageDecivolts) throws Exception;  // 单位0.1V
    boolean setCurrent(int currentDecamperes) throws Exception; // 单位0.1A
    boolean clearFault() throws Exception;
}