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