|
@@ -2,6 +2,7 @@ package com.usky.transfer.controller.web;
|
|
|
|
|
|
import com.usky.common.core.bean.ApiResult;
|
|
|
import com.usky.transfer.domain.DeviceDataWriteVO;
|
|
|
+import com.usky.transfer.domain.MqttDeviceDataVO;
|
|
|
import com.usky.transfer.service.QueryInfluxdbDataService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -28,4 +29,15 @@ public class SendMessageController {
|
|
|
return ApiResult.success(queryInfluxdbDataService.sendDeviceDataToMQ(writeVO));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * MQTT设备数据上报调试
|
|
|
+ * @param mqttDeviceDataVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/mqttDeviceData")
|
|
|
+ public ApiResult<Map<String,Object>> mqttDeviceData(@RequestBody MqttDeviceDataVO mqttDeviceDataVO){
|
|
|
+ return ApiResult.success(queryInfluxdbDataService.mqttDeviceData(mqttDeviceDataVO));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|