Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:local:remoteapi1504:apiref:messages:load_last [20/05/2014 11:49] (current)
Line 1: Line 1:
 +====== Load last messages ======
  
 +To load a few latest messages for a specified point in time, use the command **messages/​load_last**: ​
 +<code javascript>​
 +svc=messages/​load_last&​params={"​itemId":<​long>,​
 +        "​lastTime":<​uint>,​
 +        "​lastCount":<​uint>,​
 +        "​flags":<​uint>,​
 +        "​flagsMask":<​uint>,​
 +        "​loadCount":<​uint>​}
 +</​code>​
 +
 +===== Parameters =====
 +^ Name ^ Parameters ^
 +| itemId | unit or resource ID (depends on type of message you want to get) |
 +| lastTime | time for which messages are requested |
 +| lastCount | how many messages to load |
 +| flags | message flags: to load messages with defined flags only (see [[../​format/​messages | Data format: Messages]]) |
 +| flagsMask | mask (see [[load_interval]]) |
 +| loadCount | how many messages to return |
 +
 +===== Response =====
 +<​code=javascript>​
 +{
 + "​count":<​uint>,​ /​* messages count */
 + "​messages":​[ /​* array of messages */
 + {
 + ...
 + }
 + ]
 +}
 +</​code>​
 +
 +You can find message formats in the chapter [[../​format/​messages | Data format: Messages]].
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2020 Gurtam