aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-12-29 10:41:19 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2018-12-29 10:41:19 -0800
commitd4c8753543d65c4e7674d0f1ab3a78406311cf8d (patch)
treeedfe4500d9c74d0382a45560dc57f2b74cf29d9e /src/org/traccar/protocol
parentd5049fcf996abc1972620c53906579025f1c1153 (diff)
downloadtraccar-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.tar.gz
traccar-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.tar.bz2
traccar-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.zip
Another Wristband update
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WristbandProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WristbandProtocolDecoder.java b/src/org/traccar/protocol/WristbandProtocolDecoder.java
index 341690a0e..08e52c2d3 100644
--- a/src/org/traccar/protocol/WristbandProtocolDecoder.java
+++ b/src/org/traccar/protocol/WristbandProtocolDecoder.java
@@ -85,7 +85,7 @@ public class WristbandProtocolDecoder extends BaseProtocolDecoder {
position.setValid(true);
position.setLongitude(Double.parseDouble(values[0]));
position.setLatitude(Double.parseDouble(values[1]));
- position.setTime(new SimpleDateFormat("yyyyMMddHHmmss").parse(values[2]));
+ position.setTime(new SimpleDateFormat("yyyyMMddHHmm").parse(values[2]));
position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(values[3])));
return position;
@@ -126,6 +126,9 @@ public class WristbandProtocolDecoder extends BaseProtocolDecoder {
positions.add(decodePosition(deviceSession, fragment));
}
break;
+ case 64:
+ sendResponse(channel, imei, version, type, "0");
+ break;
default:
break;
}