Table of Contents

Load messages for interval

To load messages for some interval, use the command messages/load_interval:

svc=messages/load_interval&params={"itemId":<long>,
				   "type":<uint>,
				   "ival1":<uint>,
				   "ival2":<uint>,
				   "flags":<uint>,
				   "flagsMask":<uint>,
				   "loadLocations":<bool>,
				   "loadCount":<uint>}

:!: You can find an example of this request in the sample Messages.

Parameters

Name Description
itemId unit ID
type interval type (see below)
ival1 interval beginning
ival2 interval end
flags flags for loading messages (see Data format: Messages)
flagsMask маска
loadLocations загружать местоположение: 0 - нет, 1 - да
loadCount how many messages to load (0xffffffff - all found)

Interval types:

Masks:

Value Description
0x0F mask that determines type of event message
0xF0 mask that determines type of maintenance event message
0xFF00 message flags mask determining message type

Response

{
	"count":<uint>,				/* messages count */
	"messages":[				/* array of messages */
		{
			...		
		}
	]
}

You can find message formats in the chapter Data format: Messages.