i have problem with webservice, i can create a webservice like these :
this webservice can run with id of unit.
Code: Select all
var user = request.queryParams.get('user'); var pass = request.queryParams.get('pass'); var login = auth.login(user, pass); var no_vehicle = request.queryParams.get('vehicleId'); response.body = directory.getLatestRecords(no_vehicle).toString();
But, can i get getLatestRecord with other field like username, name or custom field ?
i think the result of getLatestRecord for OdometerAcc is not accurate because i compare with latest history from ggs is different. Or maybe there is any calculate to get a valid odometer ?
or can i get odometer system ? ( not from device)