|
|
@ -90,7 +90,13 @@ public class TestController extends BasicController {
|
|
|
|
@GetMapping("/discover")
|
|
|
|
@GetMapping("/discover")
|
|
|
|
public Response<String> discoverSerialPort() {
|
|
|
|
public Response<String> discoverSerialPort() {
|
|
|
|
serialPortService.discoverSerialPort();
|
|
|
|
serialPortService.discoverSerialPort();
|
|
|
|
return Response.fail("未找到");
|
|
|
|
return Response.success("OK");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/updateLastData")
|
|
|
|
|
|
|
|
public Response<String> updateLastData(Integer eqmid, String colname, String value, String time) {
|
|
|
|
|
|
|
|
StaticVariable.updateLastData(eqmid, colname, value, time);
|
|
|
|
|
|
|
|
return Response.success("OK");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/open")
|
|
|
|
@GetMapping("/open")
|
|
|
|