Back to index

GetLatestVehicleReadings_v3

This method wraps the R:Com Database view EX_LatestVehicleReadings. The available Columns under this view are listed at the end of this page

It will only return Vehicles that have communicated in that last 6 months.

Parameters:

[in] usn The user-name that you need to use to authenticate on this interface.
[in] pwd The password that you need to use to authenticate on this interface.
[out] errorMsg If an error happpens this string contains the error message. In case an error has happened (this variable contains a valid non-empty string) then the return value will not contain any usable data, do not try to parse it as an xml.
[in] columns String array of the requested columns. For the full list of supported columns please refer to the Database API Documentation. If a non-existing column is requested then that column will appear in the returned XML and every entry in that column will be an empty string.
[in] options Optional parameters seperated by semicolon: ("option1=value1;option2=value2"). Pass an empty string for no options; supported options: "UseMillisecondResolution=True" to return datetime values with millisecond resolution
return value If the errorMsg variable is null or empty then the returned string contains the requested data in xml format. The xml has the following structure:
<?xml version="1.0" encoding="utf-16"?>
<root>
  <EX_LatestVehicleReadings>
    <row VehicleID="1" VehicleName="6315old" VehicleTypeID="3"
      LastCommTime="2010-04-05 16:51:24Z" GPRSConnected="False"
      IgnitionOn="True" IgnitionReadingTime="2010-10-26 11:27:19Z"
      TotalHourmeter="9336" DieselHourmeter="9336" ElectricHourmeter="0"
      HourmeterTimeStamp="2010-01-18 18:33:46Z" NonExistingColumn="" />
    <row VehicleID="2" VehicleName="9305" VehicleTypeID="3"
      LastCommTime="2010-01-08 18:32:34Z" GPRSConnected="False"
      IgnitionOn="False" IgnitionReadingTime="2011-01-31 18:11:40Z"
      TotalHourmeter="1872" DieselHourmeter="1872" ElectricHourmeter="0"
      HourmeterTimeStamp="2009-09-28 05:03:54Z" NonExistingColumn="" />
  </EX_LatestVehicleReadings>
</root>
Please note this.

Remarks

Minimum R-COM Database version

0.708

Error messages

Please see this page.

Available Columns