|
|
@@ -90,7 +90,7 @@ public class WebsocketServiceImpl implements WebsocketService, RouterService {
|
|
|
List<String> categories = Arrays.asList(WebSocketConstants.DVS, WebSocketConstants.ALARM_HOST);
|
|
|
JSONObject args = new JSONObject();
|
|
|
args.put("categories", categories);
|
|
|
- WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, WebSocketConstants.GET_DEVICE_BASE_INFOS, args);
|
|
|
+ WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, new JSONObject(), WebSocketConstants.GET_DEVICE_BASE_INFOS, args);
|
|
|
LogUtils.WEBSOCKET_MSG.info("获取设备基础数据:{}", JacksonUtils.toJSONString(websocketResult));
|
|
|
WebSocketSessionHolder.sendAll(JacksonUtils.toJSONString(websocketResult));
|
|
|
}
|
|
|
@@ -100,7 +100,7 @@ public class WebsocketServiceImpl implements WebsocketService, RouterService {
|
|
|
String[] productNames = ProductEnums.DVS.getProductName();
|
|
|
JSONObject args = new JSONObject();
|
|
|
args.put("productNames", productNames);
|
|
|
- WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, WebSocketConstants.GET_DVS_DEVICE_INFOS, args);
|
|
|
+ WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, new JSONObject(), WebSocketConstants.GET_DVS_DEVICE_INFOS, args);
|
|
|
LogUtils.WEBSOCKET_MSG.info("获取dvs下基础数据:{}", JacksonUtils.toJSONString(websocketResult));
|
|
|
WebSocketSessionHolder.sendAll(JacksonUtils.toJSONString(websocketResult));
|
|
|
}
|
|
|
@@ -110,7 +110,7 @@ public class WebsocketServiceImpl implements WebsocketService, RouterService {
|
|
|
String[] productNames = ProductEnums.ALARM_HOST.getProductName();
|
|
|
JSONObject args = new JSONObject();
|
|
|
args.put("productNames", productNames);
|
|
|
- WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, WebSocketConstants.GET_ALARM_HOST_DEVICE_INFOS, args);
|
|
|
+ WebsocketResult websocketResult = IotServerUtils.invokeIotServer(iotServerDeviceTopic, new JSONObject(), WebSocketConstants.GET_ALARM_HOST_DEVICE_INFOS, args);
|
|
|
LogUtils.WEBSOCKET_MSG.info("获取报警主机下数据:{}", JacksonUtils.toJSONString(websocketResult));
|
|
|
WebSocketSessionHolder.sendAll(JacksonUtils.toJSONString(websocketResult));
|
|
|
}
|