diff --git a/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java b/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java index 6d05859..17eb033 100644 --- a/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java +++ b/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java @@ -1135,17 +1135,20 @@ public class IotController extends BaseController { case "Tfluorescence": // 荧光值 device.setTfluorescence(Double.parseDouble(value.toString())); break; + case "Phasedifference": // 相位差 + device.setPhaseDifference(Double.parseDouble(value.toString())); + break; // 开关状态 - case "switch1": + case "Switch1": switches.get(0).setIsOpen(Integer.parseInt(value.toString())); break; - case "switch2": + case "Switch2": switches.get(1).setIsOpen(Integer.parseInt(value.toString())); break; - case "switch3": + case "Switch3": switches.get(2).setIsOpen(Integer.parseInt(value.toString())); break; - case "switch4": + case "Switch4": switches.get(3).setIsOpen(Integer.parseInt(value.toString())); break; // 开关电压电流