4 changed files with 39 additions and 2 deletions
@ -0,0 +1,37 @@ |
|||
package org.nl.modules.quartz.task; |
|||
|
|||
import cn.hutool.http.HttpResponse; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import net.sf.json.JSONArray; |
|||
import net.sf.json.JSONObject; |
|||
import org.nl.acs.agv.server.AgvService; |
|||
import org.nl.acs.device_driver.electric_fence.ElectricFenceDeviceDriver; |
|||
import org.nl.acs.device_driver.feedback_agv_status_site.FeedbackAGVStatusSiteDeviceDriver; |
|||
import org.nl.acs.instruction.service.InstructionService; |
|||
import org.nl.acs.opc.Device; |
|||
import org.nl.acs.opc.DeviceAppService; |
|||
import org.nl.acs.opc.DeviceAppServiceImpl; |
|||
import org.nl.utils.SpringContextHolder; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 查询AGV设备状态 |
|||
*/ |
|||
@Slf4j |
|||
@Component |
|||
public class NjyfQueryMagicAgvDeviceStatus { |
|||
|
|||
@Autowired |
|||
InstructionService instructionService; |
|||
|
|||
@Autowired |
|||
AgvService agvService; |
|||
|
|||
|
|||
public void run() throws Exception { |
|||
HttpResponse response = agvService.queryMagicAgvDeviceStatus(); |
|||
System.out.println(response.body()); |
|||
} |
|||
|
|||
} |
Binary file not shown.
Loading…
Reference in new issue