1

SDK for Wialon Hosting: request last position of object

(28/06/2012 00:23:20 отредактировано wwbusch aka Buwo)

Тема: SDK for Wialon Hosting: request last position of object

Hi Guys and Ladies,

i am just a little hopeless with an easy request :-)

Is there any function to request the "last" position of an object?
i only found easy way to request messages in a defined time frame, but as i dont know the timeframe where last message could be i dont know how to solve this...

for any help always very thankfull,

Wolf.
(using not the java sdk but the json http sdk...)

Update 1:
Steps i tried:
1.)login and get SessionID (works fine)
2.) request actual position
http://"domain"/wialon/ajax.html?svc=core/search_item&sid=sessionID&params={"id":"282193","flags":"400"}

282193 is the Unit_ID, flags 400 should return the value of last position, but i dont get back the actual position.

so seems that i dont understand where to put or use the flags which are described here:
http://docs.gurtam.com/en/hosting/sdk/w … eral/flags

Update 2:
OK, solution: 400=1024 (you should use dezimal in http request and in documentation there is 0x000400 written which is hexadezimal :-))

Politeness dictates it to write his name on a post
2

SDK for Wialon Hosting: request last position of object

Re: SDK for Wialon Hosting: request last position of object

wwbusch
http://"domain"/wialon/ajax.html?svc=core/search_item&sid=sessionID&params={"id":"282193","flags":"0x400"}
smile

Mobile Development
Gurtam
3

SDK for Wialon Hosting: request last position of object

Re: SDK for Wialon Hosting: request last position of object

by the way,
for those guys using the SDK: it works realy great! And so many functions...

Wolf.

Politeness dictates it to write his name on a post
4

SDK for Wialon Hosting: request last position of object

Re: SDK for Wialon Hosting: request last position of object

If I want to choose more than one flag how would I do it.

For example I want the details of :
params={'spec':{'itemsType':'avl_unit','propName':'*','propValueMask':'*','sortType':''},'force':1,'flags':1,'from':0,'to':4294967295}

and

params={'spec':{'itemsType':'avl_unit','propName':'*','propValueMask':'*','sortType':''},'force':1,'flags':2,'from':0,'to':4294967295}


How would I combine the results?

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
5

SDK for Wialon Hosting: request last position of object

Re: SDK for Wialon Hosting: request last position of object

use value for flags: 3

3 = 1 OR 2

Its a bit map.

At the dark side of telematics...