aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-01-15 08:45:57 -0800
committerGitHub <noreply@github.com>2023-01-15 08:45:57 -0800
commitdd25846efc91d53247f76b0afb8ee11b4fa8c341 (patch)
treec88455c8a652d4abf505f982f691c449be06d3b6 /src/main/java/org/traccar
parent4f9c8cca508d4e07823e7fd4c9e4911f042ea63f (diff)
parent922f2f26f880c92b984435987319d46750d929a0 (diff)
downloadtrackermap-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/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java2
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",