|
|
@ -96,18 +96,18 @@ public class DeviceCommandService { |
|
|
|
|
|
|
|
public void handleDeviceResult(JSONObject deviceResult) { |
|
|
|
String tag = deviceResult.getStr("tag"); |
|
|
|
if ("ack".equals(tag)) { |
|
|
|
if ("ACK".equals(tag)) { |
|
|
|
completeCommandAck(deviceResult); |
|
|
|
} else if ("response".equals(tag)) { |
|
|
|
} else if ("RESPONSE".equals(tag)) { |
|
|
|
completeCommandResponse(deviceResult); |
|
|
|
} else if ("event".equals(tag)) { |
|
|
|
} else if ("EVENT".equals(tag)) { |
|
|
|
String eventType = deviceResult.getStr("event_type"); |
|
|
|
if ("system_e_stop_pressed".equals(eventType)) {//系统急停按钮被按下 |
|
|
|
deviceStatus.setStopPressed(true); |
|
|
|
} else if ("system_e_stop_released".equals(eventType)) {//系统急停按钮被释放 |
|
|
|
deviceStatus.setStopPressed(false); |
|
|
|
} |
|
|
|
} else if ("status".equals(tag)) { |
|
|
|
} else if ("STATUS".equals(tag)) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|