From d4c8753543d65c4e7674d0f1ab3a78406311cf8d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 29 Dec 2018 10:41:19 -0800 Subject: Another Wristband update --- src/org/traccar/protocol/WristbandProtocolDecoder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org') 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; } -- cgit v1.2.3