debug:设备最近更新时间

This commit is contained in:
墨大叔 2024-08-05 10:02:14 +08:00
parent a2086e0ab1
commit 4d9b5d28ba

View File

@ -28,7 +28,6 @@ public class CurrentDeviceData {
*/
public IotDeviceInfo parseDeviceInfo() {
IotDeviceInfo device = IotDeviceInfo.newDefaultInstance();
device.setAt(new Date());
device.setMac(title);
device.setId(id);
if (CollectionUtils.isEmpty(datastreams)) {
@ -37,7 +36,6 @@ public class CurrentDeviceData {
for (CurrentDatastream stream : datastreams) {
String value = stream.getValue().toString();
device.setAt(stream.getAt());
switch (stream.getId()) {
case ReceiveConstants.DS_V:
@ -64,6 +62,7 @@ public class CurrentDeviceData {
break;
case ReceiveConstants.DS_TIME:
device.setTime(NumberUtils.nonNullDecimal(value));
device.setAt(stream.getAt());
break;
case ReceiveConstants.DS_FW:
device.setModel(value);