| | |
| | | import com.zy.core.model.command.CrnCommand; |
| | | import com.zy.core.network.api.ZyCrnConnectApi; |
| | | import com.zy.core.network.entity.ZyCrnStatusEntity; |
| | | import com.zy.core.network.fake.ZyCrnFakeConnect; |
| | | import com.zy.core.network.real.ZyCrnRealConnect; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | |
| | | public boolean connect() { |
| | | if (deviceConfig.getFake() == 0) { |
| | | zyCrnConnectApi = new ZyCrnRealConnect(siemensNet, deviceConfig); |
| | | }else { |
| | | zyCrnConnectApi = new ZyCrnFakeConnect(deviceConfig); |
| | | } |
| | | |
| | | boolean connect = zyCrnConnectApi.connect(); |