Sending special attributes via Wialon protocol

TP2 years ago

I am implementing a tracker and I am using the Wialon protocol because it seems the easiest most flexible and I have seen it being recommended on the forum for new implementations.

Now with another tracker (Teltonika) I have these attributes that seem to be numbers, but actually get formatted in the GUI:

My question is, how would I send for example the battery voltage using the Wialon protocol? I know I can send attributes as NAME:TYPE:VALUE, but:

  • Is the name "battery" or "Battery" or something else?
  • Do I send an int for millivolts or a float for volts or something else?
  • How does Traccar know that there is supposed to be a "V" after the value?
Anton Tananaev2 years ago

There are known attributes that get automatically formatted. Check Position class.