aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GoSafeProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 11:57:24 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 11:57:24 +1200
commit6f47747e6a438037392794f72ac91dbce6cc6683 (patch)
treef3622c237a3b843c1576706f11a0e161e1a24c59 /src/org/traccar/protocol/GoSafeProtocolDecoder.java
parente7dfc6bd5f518f1a479abdb5be6e19f12222b682 (diff)
downloadtrackermap-server-6f47747e6a438037392794f72ac91dbce6cc6683.tar.gz
trackermap-server-6f47747e6a438037392794f72ac91dbce6cc6683.tar.bz2
trackermap-server-6f47747e6a438037392794f72ac91dbce6cc6683.zip
Add GoSafe protocol response
Diffstat (limited to 'src/org/traccar/protocol/GoSafeProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
index 758d9a71d..843671440 100644
--- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java
+++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
@@ -53,6 +53,10 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder {
throws Exception {
String sentence = (String) msg;
+
+ if (channel != null) {
+ channel.write("1234");
+ }
// Parse message
Matcher parser = pattern.matcher(sentence);