aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-02-14 19:48:32 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-02-14 19:48:32 -0800
commit85b3d963d7fcb0f13491baafd9b0159280e1af51 (patch)
treeb12b92eb02ef28abef22cbdb68b6863aa9ad23ed /src/main
parentec889246f2d052f1878027cbf8f2e24435f09586 (diff)
downloadtrackermap-server-85b3d963d7fcb0f13491baafd9b0159280e1af51.tar.gz
trackermap-server-85b3d963d7fcb0f13491baafd9b0159280e1af51.tar.bz2
trackermap-server-85b3d963d7fcb0f13491baafd9b0159280e1af51.zip
Use mobile id for ORBCOMM
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java
index aff722c46..bc28498cc 100644
--- a/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java
@@ -70,7 +70,7 @@ public class OrbcommProtocolDecoder extends BaseProtocolDecoder {
for (int i = 0; i < messages.size(); i++) {
JsonObject message = messages.getJsonObject(i);
DeviceSession deviceSession = getDeviceSession(
- channel, remoteAddress, true, message.getJsonNumber("ID").toString());
+ channel, remoteAddress, true, message.getString("MobileID"));
if (deviceSession != null) {
Position position = new Position(getProtocolName());