Teltonika SDK Typescript
    Preparing search index...

    Class TeltonikaCodec12Command

    Represents a command for Teltonika Codec 12. This class extends TeltonikaBaseCommand to handle Codec 12 specific command formatting.

    TeltonikaCodec12Command

    const command = new TeltonikaCodec12Command('getinfo');
    const buffer = command.toBuffer();

    Hierarchy (View Summary)

    Index

    Accessors

    • get crc(): Buffer<ArrayBuffer>

      Returns the 4-byte CRC-16 checksum buffer for the content.

      Returns Buffer<ArrayBuffer>

    • get dataSize(): Buffer<ArrayBuffer>

      Returns the 4-byte buffer representing the size of the content.

      Returns Buffer<ArrayBuffer>

    Constructors

    Methods

    • Gets the content buffer for the command.

      Returns Buffer<ArrayBuffer>

      The concatenated buffer containing codec ID, number of commands, type, command size, command, and number of commands.

    • Converts the command to a full buffer including preamble, data size, content, and CRC.

      Returns Buffer<ArrayBuffer>

      The complete buffer representation of the command.

    Properties

    cmd: Buffer

    Command as a buffer

    cmdSize: Buffer

    Size of the command string

    codecId: Buffer

    Codec ID for this command

    content: Buffer

    Full content buffer of the command (to be sent)

    imei?: Buffer<ArrayBufferLike>

    IMEI buffer for device-specific commands

    numberOfCmd: Buffer

    Number of commands in the message

    preamble: Buffer

    Command preamble (default 4 zero bytes)

    type: Buffer

    Command type identifier