|
@@ -1,5 +1,6 @@
|
|
package com.ruoyi.monitorInterface.chenganshengbang.controller;
|
|
package com.ruoyi.monitorInterface.chenganshengbang.controller;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.ruoyi.monitorInterface.chenganshengbang.service.WaterPressureService;
|
|
import com.ruoyi.monitorInterface.chenganshengbang.service.WaterPressureService;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -24,6 +25,14 @@ public class WaterPressureController {
|
|
return responseData();
|
|
return responseData();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 水压传感器指令下发
|
|
|
|
+ * */
|
|
|
|
+ @PostMapping("/command")
|
|
|
|
+ public String command(@RequestBody String data){
|
|
|
|
+ return waterPressureService.command(data);
|
|
|
|
+ }
|
|
|
|
+
|
|
public static byte[] responseData(){
|
|
public static byte[] responseData(){
|
|
int xiangyingma = 200;
|
|
int xiangyingma = 200;
|
|
byte[] xiangyingbytes = new byte[4];
|
|
byte[] xiangyingbytes = new byte[4];
|