diff options
author | Frédéric Christ <dev@ntr.li> | 2024-06-12 19:22:06 +0200 |
---|---|---|
committer | Frédéric Christ <dev@ntr.li> | 2024-06-12 19:22:06 +0200 |
commit | a4879de310dc7a1fb8385631ec9d6aca71e57b3e (patch) | |
tree | 7f1de0a703264e7a1627d19956d47475cd0e1f04 | |
parent | 0bb9e28cf771a60db06a33b4967a2049bea72af5 (diff) | |
download | trackermap-server-a4879de310dc7a1fb8385631ec9d6aca71e57b3e.tar.gz trackermap-server-a4879de310dc7a1fb8385631ec9d6aca71e57b3e.tar.bz2 trackermap-server-a4879de310dc7a1fb8385631ec9d6aca71e57b3e.zip |
tlt2h protocol: Add `SHAKE` event
This contribution introduces the `SHAKE` event. It has been verified
with the Mictrack MT700. MT700 emits this event when configured in Mode
4, 7 or 0. It is the first event sent after wake-up due to a detected
vibration.
-rw-r--r-- | src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java index 6be3d2dc3..c8ea66b6c 100644 --- a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java @@ -112,6 +112,9 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder { case "TOWED": position.set(Position.KEY_ALARM, Position.ALARM_TOW); break; + case "SHAKE": + position.set(Position.KEY_ALARM, Position.ALARM_VIBRATION); + break; case "SOS": position.set(Position.KEY_ALARM, Position.ALARM_SOS); break; |