|
|
@ -194,7 +194,6 @@ deviceModule = function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (device["deviceInfo"]) {
|
|
|
|
if (device["deviceInfo"]) {
|
|
|
|
filteredDeviceData["latestDeviceInfo"] = device["deviceInfo"];
|
|
|
|
filteredDeviceData["latestDeviceInfo"] = device["deviceInfo"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//location related verification and modifications
|
|
|
|
//location related verification and modifications
|
|
|
|
// adding the location histry for the movement path.
|
|
|
|
// adding the location histry for the movement path.
|
|
|
@ -212,6 +211,8 @@ deviceModule = function () {
|
|
|
|
filteredDeviceData.latestDeviceInfo.location.latitude = locationInfo.latitude;
|
|
|
|
filteredDeviceData.latestDeviceInfo.location.latitude = locationInfo.latitude;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response["content"] = filteredDeviceData;
|
|
|
|
response["content"] = filteredDeviceData;
|
|
|
|
response["status"] = "success";
|
|
|
|
response["status"] = "success";
|
|
|
|