diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-28 16:40:39 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-28 16:40:39 -0800 |
commit | b2f389803ffaed47082a6f770c5b19df98cecac2 (patch) | |
tree | daa6023b153cc2e7625e0a884ea2ee4c524393e8 /src/main/java/org/traccar/protocol/KhdProtocol.java | |
parent | 166852601ab6b4f0e7917ae7c53a216ce3ffb054 (diff) | |
download | trackermap-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.java | 10 |
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) { |