aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ST210ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/ST210ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ST210ProtocolDecoder.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/org/traccar/protocol/ST210ProtocolDecoder.java b/src/org/traccar/protocol/ST210ProtocolDecoder.java
index 230dd5505..8745941cb 100644
--- a/src/org/traccar/protocol/ST210ProtocolDecoder.java
+++ b/src/org/traccar/protocol/ST210ProtocolDecoder.java
@@ -15,15 +15,13 @@ import org.traccar.model.DataManager;
import org.traccar.model.Position;
public class ST210ProtocolDecoder extends GenericProtocolDecoder {
+
- /**
- * Initialize
- */
public ST210ProtocolDecoder(DataManager dataManager, Integer resetDelay) {
- super(dataManager, resetDelay);
- }
+ super(dataManager, resetDelay);
+ }
- private enum ST210FIELDS {
+ private enum ST210FIELDS {
HDR_STATUS("SA200STT;", "Status Report"), HDR_EMERGENCY("SA200EMG;",
"Emergency Report"), HDR_EVENT("SA200EVT;", "Event Report"), HDR_ALERT(
"SA200ALT;", "Alert Report"), HDR_ALIVE("SA200ALV;",
@@ -596,9 +594,6 @@ public class ST210ProtocolDecoder extends GenericProtocolDecoder {
@Override
public Object decode(ChannelHandlerContext ctx, Channel channel, Object msg)
throws Exception {
- if (channel != null) {
- channel.write("OI AMIGO do decoder");
- }
String sentence = (String) msg;
return decodeMsg(sentence);
}
@@ -637,4 +632,5 @@ public class ST210ProtocolDecoder extends GenericProtocolDecoder {
return position;
}
+
}