Indicates whether the device has been initialized (IMEI assigned).
Indicates whether the device currently has unprocessed buffered data.
Appends incoming data to the device's internal buffer.
The incoming data chunk.
Clears the device's internal buffer.
Closes the connection with the device.
Initializes the device with its IMEI and GPRS codec. Sends a handshake byte (0x01) to the device after initialization.
The IMEI of the device.
The GPRS codec for command communication.
Sends a command to the device using the specified codec or the device's default GPRS codec.
The command string to send.
Optionalcodec: TeltonikaGPRSCodecOptional codec to override the device's default codec.
Buffer to temporarily store incoming data from the device until processed.
OptionalgprsThe GPRS codec used by this device for command communication. Undefined until the device is initialized.
OptionalimeiIMEI of the connected Teltonika device. Undefined until the device is initialized.
The underlying network socket for communicating with the device.
Unique identifier for this device instance.
Represents a single Teltonika device connection over a network socket. This class manages the device's state, incoming data buffering, and command sending.
TeltonikaDevice