mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Fix device id decoding
This commit is contained in:
parent
a7c744c8c6
commit
54eb4b0188
@ -645,7 +645,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
|
||||
return null;
|
||||
}
|
||||
|
||||
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, ByteBufUtil.hexDump(buf.readSlice(5)));
|
||||
DeviceSession deviceSession = getDeviceSession(
|
||||
channel, remoteAddress, ByteBufUtil.hexDump(buf.readSlice(5)).substring(0, 9));
|
||||
if (deviceSession == null) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user