From 50e7e2b17ba580afddaf11a0ea079b4535cf2478 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 31 Aug 2019 09:37:26 -0700 Subject: Implement SOS alarm --- src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/org/traccar/protocol') 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(); -- cgit v1.2.3