diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-01-15 08:45:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 08:45:57 -0800 |
commit | dd25846efc91d53247f76b0afb8ee11b4fa8c341 (patch) | |
tree | c88455c8a652d4abf505f982f691c449be06d3b6 /src/main | |
parent | 4f9c8cca508d4e07823e7fd4c9e4911f042ea63f (diff) | |
parent | 922f2f26f880c92b984435987319d46750d929a0 (diff) | |
download | trackermap-server-dd25846efc91d53247f76b0afb8ee11b4fa8c341.tar.gz trackermap-server-dd25846efc91d53247f76b0afb8ee11b4fa8c341.tar.bz2 trackermap-server-dd25846efc91d53247f76b0afb8ee11b4fa8c341.zip |
Merge pull request #5018 from e-macgregor/patch-1
Added missing "StatusReq"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java index b298adc5a..a4faacf13 100644 --- a/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java +++ b/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java @@ -99,7 +99,7 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder { case Command.TYPE_REBOOT_DEVICE: return formatCommand(command, prefix + "CMD;%s;02;Reboot\r", Command.KEY_UNIQUE_ID); case Command.TYPE_POSITION_SINGLE: - return formatCommand(command, prefix + "CMD;%s;02;\r", Command.KEY_UNIQUE_ID); + return formatCommand(command, prefix + "CMD;%s;02;StatusReq\r", Command.KEY_UNIQUE_ID); case Command.TYPE_OUTPUT_CONTROL: if (command.getAttributes().get(Command.KEY_DATA).equals("1")) { return formatCommand(command, prefix + "CMD;%s;02;Enable%s\r", |