aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-06 06:42:12 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-06 06:42:12 -0700
commit75f1bed91c1669e1442c2ab9ea9af0b5754db4db (patch)
tree1300568cb92223bdb73789175aff036653f94723 /src/main/java
parentbb78e15201e88fba4c71bb08d98d0f0bc5acecbf (diff)
downloadtrackermap-server-75f1bed91c1669e1442c2ab9ea9af0b5754db4db.tar.gz
trackermap-server-75f1bed91c1669e1442c2ab9ea9af0b5754db4db.tar.bz2
trackermap-server-75f1bed91c1669e1442c2ab9ea9af0b5754db4db.zip
Fix TAT100 cell decoding
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 4671a1088..89af20b22 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -347,10 +347,10 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
if (position.hasAttribute(mncKey) && position.hasAttribute(lacKey) && position.hasAttribute(cidKey)) {
CellTower cellTower = CellTower.from(
getConfig().getInteger(Keys.GEOLOCATION_MCC),
- (Integer) position.getAttributes().remove(mncKey),
- (Integer) position.getAttributes().remove(lacKey),
- (Integer) position.getAttributes().remove(cidKey));
- cellTower.setSignalStrength((Integer) position.getAttributes().remove(rssiKey));
+ ((Number) position.getAttributes().remove(mncKey)).intValue(),
+ ((Number) position.getAttributes().remove(lacKey)).intValue(),
+ ((Number) position.getAttributes().remove(cidKey)).longValue());
+ cellTower.setSignalStrength(((Number) position.getAttributes().remove(rssiKey)).intValue());
network.addCellTower(cellTower);
}
}