Sensors values from last message

To get sensors value from the last message, use the command unit/calc_last_message:

svc=unit/calc_last_message&params={"unitId":<long>,
				   "sensors":[<long>]}

Parameters

Name Description
unitId unit ID
sensors array of sensors IDs (optional parameter, if not specified or empty – return values of all sensors)

Response

{
	<text>:<double|text>,	/* sensor ID: sensor value */
	...
}