aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/KhdProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-02-28 16:40:39 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-02-28 16:40:39 -0800
commitb2f389803ffaed47082a6f770c5b19df98cecac2 (patch)
treedaa6023b153cc2e7625e0a884ea2ee4c524393e8 /src/main/java/org/traccar/protocol/KhdProtocol.java
parent166852601ab6b4f0e7917ae7c53a216ce3ffb054 (diff)
downloadtrackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.gz
trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.tar.bz2
trackermap-server-b2f389803ffaed47082a6f770c5b19df98cecac2.zip
Commands and result support
Diffstat (limited to 'src/main/java/org/traccar/protocol/KhdProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/KhdProtocol.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/KhdProtocol.java b/src/main/java/org/traccar/protocol/KhdProtocol.java
index f77f4c311..60a2aea7f 100644
--- a/src/main/java/org/traccar/protocol/KhdProtocol.java
+++ b/src/main/java/org/traccar/protocol/KhdProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2021 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,13 @@ public class KhdProtocol extends BaseProtocol {
public KhdProtocol() {
setSupportedDataCommands(
Command.TYPE_ENGINE_STOP,
- Command.TYPE_ENGINE_RESUME);
+ Command.TYPE_ENGINE_RESUME,
+ Command.TYPE_GET_VERSION,
+ Command.TYPE_FACTORY_RESET,
+ Command.TYPE_SET_SPEED_LIMIT,
+ Command.TYPE_SET_ODOMETER,
+ Command.TYPE_POSITION_SINGLE);
+
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {