AbstractReturns the 4-byte CRC-16 checksum buffer for the content.
Returns the 4-byte buffer representing the size of the content.
Initializes the command with the provided constructor data. Computes content and command size buffers.
Command initialization data.
Custom inspection for Node.js console to display the command buffer.
AbstractgetReturns the content buffer of the command. Must be implemented in subclasses.
AbstracttoReturns the full command buffer ready for transmission. Must be implemented in subclasses.
Returns the command as a hexadecimal string representation.
Hex string of the command buffer.
ProtectedcmdCommand as a buffer
ProtectedcmdSize of the command string
ProtectedcodecCodec ID for this command
ProtectedcontentFull content buffer of the command (to be sent)
Protected OptionalimeiIMEI buffer for device-specific commands
ProtectednumberNumber of commands in the message
ProtectedpreambleCommand preamble (default 4 zero bytes)
ProtectedtypeCommand type identifier
Abstract base class representing a Teltonika GPRS command. Handles building the command buffer, computing CRC, and formatting for transmission. Subclasses must implement
getContentandtoBufferfor codec-specific behavior.TeltonikaBaseCommand
Example