diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-02-04 11:56:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 11:56:58 -0800 |
commit | 5878ea602d087da291687a0120b5a3f31f7ee861 (patch) | |
tree | 851c6e2b388b97f3cdaa7a539e713a6e0d5d2c05 /src/main/java/org/traccar/protocol/TotemProtocol.java | |
parent | 135b98315ff4a34025b21221862236936e745823 (diff) | |
parent | c21626223cd0c480725d8057a2cd4bf2b9d7e0b3 (diff) | |
download | trackermap-server-5878ea602d087da291687a0120b5a3f31f7ee861.tar.gz trackermap-server-5878ea602d087da291687a0120b5a3f31f7ee861.tar.bz2 trackermap-server-5878ea602d087da291687a0120b5a3f31f7ee861.zip |
Merge pull request #4790 from jinzo/totem-advanced-commands
Totem support for SMS and GPRS commands
Diffstat (limited to 'src/main/java/org/traccar/protocol/TotemProtocol.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TotemProtocol.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/TotemProtocol.java b/src/main/java/org/traccar/protocol/TotemProtocol.java index 7cf30475b..417a4d6b0 100644 --- a/src/main/java/org/traccar/protocol/TotemProtocol.java +++ b/src/main/java/org/traccar/protocol/TotemProtocol.java @@ -34,6 +34,18 @@ public class TotemProtocol extends BaseProtocol { Command.TYPE_ENGINE_RESUME, Command.TYPE_ENGINE_STOP ); + + setTextCommandEncoder(new TotemProtocolSmsEncoder(this)); + setSupportedTextCommands( + Command.TYPE_CUSTOM, + Command.TYPE_REBOOT_DEVICE, + Command.TYPE_FACTORY_RESET, + Command.TYPE_GET_VERSION, + Command.TYPE_POSITION_SINGLE, + Command.TYPE_ENGINE_RESUME, + Command.TYPE_ENGINE_STOP + ); + addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { |