|
|
@ -230,40 +230,46 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommand nozzleHeatStart(Double temperature) { |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("temp", temperature); |
|
|
|
return controlCmd("nozzle_temperature", "open", params, "打开喷头加热,温度:"+temperature); |
|
|
|
return controlCmd("nozzle_temperature", "open", params, "打开喷头加热,温度:" + temperature); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 关闭喷头加热 |
|
|
|
*/ |
|
|
|
public static DeviceCommand nozzleHeatStop() { |
|
|
|
return controlCmd("nozzle_temperature", "close", null, "关闭喷头加热"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取喷头温度 |
|
|
|
*/ |
|
|
|
public static DeviceCommand getNozzleHeat() { |
|
|
|
return getInfoCmd("nozzle_temperature", "获取喷头温度"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 载玻台开启加热 |
|
|
|
*/ |
|
|
|
public static DeviceCommand slidePlatHeatStart(Double temperature) { |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("temp", temperature); |
|
|
|
return controlCmd("slide_temperature", "open", params, "载玻台开启加热,温度:"+temperature); |
|
|
|
return controlCmd("slide_temperature", "open", params, "载玻台开启加热,温度:" + temperature); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 载玻台关闭加热 |
|
|
|
*/ |
|
|
|
public static DeviceCommand slidePlatHeatStop() { |
|
|
|
return controlCmd("slide_temperature", "close", null, "载玻台关闭加热"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取喷头温度 |
|
|
|
* 获取载玻台温度 |
|
|
|
*/ |
|
|
|
public static DeviceCommand getSlidePlatHeat() { |
|
|
|
return getInfoCmd("slide_temperature", "获取载玻台温度"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取设备当前湿度 |
|
|
|
*/ |
|
|
|