Teltonika SDK Typescript
    Preparing search index...

    Function imeiToBuffer

    • Converts an IMEI decimal string into an 8-byte BCD (Binary-Coded Decimal) buffer using low-nibble-first digit order.

      Each byte encodes two decimal digits:

      • low nibble = first digit
      • high nibble = second digit

      If the IMEI has an odd number of digits, it is left-padded with '0' to produce an even number of digits.

      Example: "868373071752218" → <Buffer 08 68 37 30 71 75 22 18>

      Parameters

      • imei: string

        IMEI as a numeric string (digits only).

      Returns Buffer<ArrayBuffer>

      A Buffer containing the BCD-encoded IMEI.

      If the input contains non-digit characters.