Topic: 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¶ms={"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 :-))