Commit 5464d3fb by huangjy

fix:呼吸心率接口

parent d8cb04fe
...@@ -160,7 +160,7 @@ public class IotProductDeviceService extends IotCommonService { ...@@ -160,7 +160,7 @@ public class IotProductDeviceService extends IotCommonService {
int movebodyRandomLong = RandomUtils.nextInt(40,90); int movebodyRandomLong = RandomUtils.nextInt(40,90);
deviceInfoContentBreathe = new DeviceInfoContentBreathe(); deviceInfoContentBreathe = new DeviceInfoContentBreathe();
LocalDateTime localDateTime = startTime.plusMinutes(i); LocalDateTime localDateTime = startTime.plusMinutes(i);
long timeStamp = localDateTime.toEpochSecond(ZoneOffset.ofHours(8)); long timeStamp = localDateTime.toInstant(ZoneOffset.UTC).toEpochMilli();
deviceInfoContentBreathe.setTimestamp(timeStamp); deviceInfoContentBreathe.setTimestamp(timeStamp);
DeviceInfoContentBreathe.Properties properties = new DeviceInfoContentBreathe.Properties(); DeviceInfoContentBreathe.Properties properties = new DeviceInfoContentBreathe.Properties();
properties.setBr(brRandomLong); properties.setBr(brRandomLong);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment