aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-06-13 15:49:46 +0200
committerMatjaž Črnko <m.crnko@txt.si>2023-06-13 15:49:46 +0200
commitcbfc5e524c98115ae0b1a4fb0754e9841a4fb915 (patch)
treeddb0aaeac4b395e482f79094740615e11549c77e /src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
parenta3a086cfda4219815cba4ea6ca2cb44028c1e091 (diff)
downloadtrackermap-server-cbfc5e524c98115ae0b1a4fb0754e9841a4fb915.tar.gz
trackermap-server-cbfc5e524c98115ae0b1a4fb0754e9841a4fb915.tar.bz2
trackermap-server-cbfc5e524c98115ae0b1a4fb0754e9841a4fb915.zip
Ruptela renamed bleBeaconId to tagId
Diffstat (limited to 'src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 2680e56b2..1f2887859 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -285,18 +285,18 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
driverId.release();
}
- Long tcoDriverIdPart1 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 155);
- Long tcoDriverIdPart2 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 156);
- if (tcoDriverIdPart1 != null && tcoDriverIdPart2 != null) {
- ByteBuf driverId = Unpooled.copyLong(tcoDriverIdPart1, tcoDriverIdPart2);
+ driverIdPart1 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 155);
+ driverIdPart2 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 156);
+ if (driverIdPart1 != null && driverIdPart2 != null) {
+ ByteBuf driverId = Unpooled.copyLong(driverIdPart1, driverIdPart2);
position.set(Position.KEY_DRIVER_UNIQUE_ID, driverId.toString(StandardCharsets.US_ASCII));
driverId.release();
}
- Long bleBeaconIdP1 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 760);
- Long bleBeaconIdP2 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 761);
- if (bleBeaconIdP1 != null && bleBeaconIdP2 != null) {
- position.set("bleBeaconId", Long.toHexString(bleBeaconIdP1) + Long.toHexString(bleBeaconIdP2));
+ Long tagIdPart1 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 760);
+ Long tagIdPart2 = (Long) position.getAttributes().remove(Position.PREFIX_IO + 761);
+ if (tagIdPart1 != null && tagIdPart2 != null) {
+ position.set("tagId", Long.toHexString(tagIdPart1) + Long.toHexString(tagIdPart2));
}
positions.add(position);