|
...
|
...
|
@@ -28,6 +28,7 @@ public class DeviceCommandListenServiceImpl implements DeviceCommandServiceFacto |
|
|
|
private static final Logger log = LoggerFactory.getLogger(DeviceCommandListenServiceImpl.class);
|
|
|
|
@Override
|
|
|
|
public NoticeMessageDto read(String deviceId, JsonObject jsonObject) {
|
|
|
|
log.info("不支持读功能");
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -40,7 +41,7 @@ public class DeviceCommandListenServiceImpl implements DeviceCommandServiceFacto |
|
|
|
noticeMessageDto.setTopic(topic);
|
|
|
|
noticeMessageDto.setTopicconfig(topicModel);
|
|
|
|
|
|
|
|
//将jsonObject里面的两层键值比如:{"1":{"key","value","key1",1}}提取成一层放在commdjson里面如{"key":"value","key1":1}
|
|
|
|
//将{"0":"a,b,c","1":"a,b,c"}变成{"A_SYS_0_"}
|
|
|
|
JsonObject commdjson = flattenJsonObject(jsonObject);
|
|
|
|
|
|
|
|
noticeMessageDto.setCommd(commdjson.toString().getBytes());
|
...
|
...
|
|