aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-31 09:37:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-08-31 09:37:26 -0700
commit50e7e2b17ba580afddaf11a0ea079b4535cf2478 (patch)
tree3556c5c371f0a641d91a29fc6b3870dc6dc458a1 /src/main
parent02c11aa5bb9506357b5007084e80ef1bbc8ecd78 (diff)
downloadtraccar-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.tar.gz
traccar-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.tar.bz2
traccar-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.zip
Implement SOS alarm
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
index 7e0e3e110..ea9c9767b 100644
--- a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
@@ -83,6 +83,9 @@ public class SigfoxProtocolDecoder extends BaseHttpProtocolDecoder {
} else {
position.set(Position.KEY_EVENT, event);
+ if (event == 0x22 || event == 0x62) {
+ position.set(Position.KEY_ALARM, Position.ALARM_SOS);
+ }
while (buf.isReadable()) {
int type = buf.readUnsignedByte();