aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-06 19:03:41 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-06 19:03:41 -0800
commit4e68a40c77240800dce14094b4cc55907410c208 (patch)
tree3fb0176342a47facfb31e143dcf580036fdba1e2 /src/org
parent15f0744893304a3f2a77d36734cdc2a2706286dd (diff)
downloadtrackermap-server-4e68a40c77240800dce14094b4cc55907410c208.tar.gz
trackermap-server-4e68a40c77240800dce14094b4cc55907410c208.tar.bz2
trackermap-server-4e68a40c77240800dce14094b4cc55907410c208.zip
Fix OwnTracks decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 4ce880316..323d97fa3 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -56,7 +56,7 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
return null;
}
- Position position = new Position();
+ Position position = new Position(getProtocolName());
String uniqueId;
if (root.containsKey("topic")) {
@@ -84,7 +84,6 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
}
position.setDeviceId(deviceSession.getDeviceId());
- position.setProtocol(getProtocolName());
position.setTime(new Date(root.getJsonNumber("tst").longValue() * 1000));
if (root.containsKey("sent")) {