aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WristbandProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-12-28 15:07:49 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2018-12-28 15:07:49 -0800
commitfceb580895aebfbf6c9f506dcfa56c21e4222e54 (patch)
tree7bd803dbf3ee250965606e90dd47ec5c9bf9ccfb /src/org/traccar/protocol/WristbandProtocolDecoder.java
parentb29bf8bcea11fb154da54b8d2f11fd2fd8517ef8 (diff)
downloadtrackermap-server-fceb580895aebfbf6c9f506dcfa56c21e4222e54.tar.gz
trackermap-server-fceb580895aebfbf6c9f506dcfa56c21e4222e54.tar.bz2
trackermap-server-fceb580895aebfbf6c9f506dcfa56c21e4222e54.zip
Fix Wristband response
Diffstat (limited to 'src/org/traccar/protocol/WristbandProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/WristbandProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WristbandProtocolDecoder.java b/src/org/traccar/protocol/WristbandProtocolDecoder.java
index 3b1c6c2d4..b14e1b355 100644
--- a/src/org/traccar/protocol/WristbandProtocolDecoder.java
+++ b/src/org/traccar/protocol/WristbandProtocolDecoder.java
@@ -46,7 +46,7 @@ public class WristbandProtocolDecoder extends BaseProtocolDecoder {
Channel channel, String imei, String version, int type, String data) {
if (channel != null) {
- String sentence = String.format("YX%s|%s|0|{F%d#%s}\r\n", imei, version, type, data);
+ String sentence = String.format("YX%s|%s|0|{F%02d#%s}\r\n", imei, version, type, data);
ByteBuf response = Unpooled.buffer();
if (type != 91) {
response.writeBytes(new byte[]{0x00, 0x01, 0x02});