get_messages

The get_messages function is used to get messages from a layer.

Copied!
svc=render/get_messages&params={"layerName":"<text>",
								"indexFrom":<uint>,
								"indexTo":<uint>,
								"unitId":<long>
								"calcSensors": <text>}

Parameters

Name Description
layerName Layer name.
indexFrom The index of the first requested message.
indexTo The index of the last requested message.
unitId Unit ID.
calcSensors Sensor values. If set to a non-empty value (“1”, “yes”, “true”, or any other text), sensor values will be calculated and included in the response. If empty or omitted, sensor values are not calculated.

Returned result

Copied!
[			/* array of messages */
	{
		...
	}
]

The message formats are described here.

Possible error codes:

CodeDescription
6Undefined error.
4

Wrong input parameters.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form