Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2026 Changes in this version + const CodecID + const CommandTypeRequest + const CommandTypeResponse + const RequestPreamble + const ResponsePreamble + func EncodeCommandRequest(command string) ([]byte, error) + type AvlData struct + Altitude int16 + Angle uint16 + Elements []Element + EventID uint16 + Lat int32 + Lng int32 + Priority uint8 + Speed uint16 + Utime uint64 + UtimeMs uint64 + VisSat uint8 + type AvlEncodeKey struct + Bytes string + Description string + FinalConversion string + HWSupport string + Max string + Min string + Multiplier string + No string + ParametrGroup string + PropertyName string + Type string + Units string + type CommandRequest struct + Command []byte + func DecodeCommandRequest(rawCommand *[]byte) (CommandRequest, error) + type CommandResponse struct + Response []byte + func DecodeCommandResponse(rawResponse *[]byte) (CommandResponse, error) + type Decoded struct + CodecID byte + Data []AvlData + IMEI string + NoOfData uint8 + Response []byte + func Decode(bs *[]byte) (Decoded, error) + type Element struct + IOID uint16 + Length uint16 + Value []byte + func DecodeElements(bs *[]byte, start int, codecID byte) ([]Element, int, error) + type HAvlData struct + AvlEncodeKey *AvlEncodeKey + Element *Element + func (h *HAvlData) GetFinalValue() (interface{}, error) + type HumanDecoder struct + func (h *HumanDecoder) AvlDataToHuman(data *[]AvlData) ([][][]string, error) + func (h *HumanDecoder) Human(el *Element, device string) (*HAvlData, error)