diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-29 10:41:19 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-29 10:41:19 -0800 |
commit | d4c8753543d65c4e7674d0f1ab3a78406311cf8d (patch) | |
tree | edfe4500d9c74d0382a45560dc57f2b74cf29d9e /src/org/traccar | |
parent | d5049fcf996abc1972620c53906579025f1c1153 (diff) | |
download | trackermap-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.tar.gz trackermap-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.tar.bz2 trackermap-server-d4c8753543d65c4e7674d0f1ab3a78406311cf8d.zip |
Another Wristband update
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/WristbandProtocolDecoder.java | 5 |
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; } |