修复wifi发送的数据记录问题
This commit is contained in:
parent
09ad0dfdfe
commit
5e1f0d2ea0
|
|
@ -175,9 +175,9 @@ namespace Waste.Application
|
|||
deviceid = device.Id,
|
||||
businessid = device.Businessid,
|
||||
resultid = resultid,
|
||||
imei = devicedata.IMSI,
|
||||
iccid = devicedata.ICCID,
|
||||
imsi = devicedata.IMSI,
|
||||
imei = devicedata !=null?devicedata.IMSI:"",
|
||||
iccid = devicedata != null?devicedata.ICCID:"",
|
||||
imsi = devicedata != null?devicedata.IMSI:"",
|
||||
time = time,
|
||||
latitude = "",
|
||||
longitude = "",
|
||||
|
|
@ -185,7 +185,7 @@ namespace Waste.Application
|
|||
city = "",
|
||||
area = data.trashcode,
|
||||
wastetype = data.WasteType,
|
||||
weigth = weight,
|
||||
weigth = data.Weight,
|
||||
isheart = data.IsHeart,
|
||||
tare = device.Tare,
|
||||
isfrist = isfrist
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ namespace Waste.Application.ThirdApiInfo
|
|||
return dto;
|
||||
}
|
||||
string heartstr = ByteToHexStr(resultByte[i + 2]);//是否为测量数据
|
||||
if (heartstr != "00")
|
||||
if (heartstr != "01")
|
||||
{
|
||||
dto.IsHeart = true;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue