aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-09 07:35:17 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-09 07:35:17 -0700
commit680fe003a7cc9da354a989936d8f7f07580110bb (patch)
tree778adeddd53686b29433b2118a5439e15986a318 /src
parentb80e3d974ef438b781e9a12464b0cf7823d3e227 (diff)
downloadtrackermap-server-680fe003a7cc9da354a989936d8f7f07580110bb.tar.gz
trackermap-server-680fe003a7cc9da354a989936d8f7f07580110bb.tar.bz2
trackermap-server-680fe003a7cc9da354a989936d8f7f07580110bb.zip
Add Flespi event code
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java b/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java
index a7f6c284a..95d491af7 100644
--- a/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java
@@ -130,6 +130,9 @@ public class FlespiProtocolDecoder extends BaseHttpProtocolDecoder {
case "dout":
position.set(Position.KEY_OUTPUT, ((JsonNumber) value).intValue());
return true;
+ case "report.reason":
+ position.set(Position.KEY_EVENT, ((JsonNumber) value).intValue());
+ return true;
case "gps.vehicle.mileage":
position.set(Position.KEY_ODOMETER, ((JsonNumber) value).doubleValue());
return true;