AbstractChecks if the buffer contains a complete Teltonika packet. It compares the length specified in the packet header with the actual payload size.
The raw buffer from the device.
True if the buffer contains a complete packet.
Checks if the buffer contains an IMEI message.
IMEI packets are 17 bytes long and start with 0x00 0x0F.
The raw buffer from the device.
True if the buffer contains an IMEI message.
Checks if the buffer contains the start of a Teltonika data packet.
Standard packets begin with 4 bytes 0x00 0x00 0x00 0x00.
The raw buffer from the device.
True if the buffer is a packet.
Parses the IMEI string from an IMEI buffer.
The buffer containing the IMEI.
The IMEI extracted from the buffer.
AbstractparseAbstract method to parse a buffer into a typed Teltonika packet. Must be implemented by subclasses for specific codecs.
The raw packet buffer.
Parsed packet of type T.
Base abstract parser class for Teltonika device packets. Provides utility methods to identify and parse IMEI data and device packets. Subclasses must implement
parsePacketto handle specific codec formats.TeltonikaBaseParser
Example