Hello,
The field/find API gives as a response some info which include the last date update, but not the last value.
It would be fine to have also the last value. I have not found another API which provides the last date and value if the device is down since more than 1 hour, even /measurement/loadLastFloatValue/ response an error code 204 in that case.
Okay, so that you need a full record of the last measurement of the field, like this?
{
"epoch":17910,
"nodeId":"7c8f4bb0-17eb-11e9-9ca3-f719d74fca9a",
"field":"teszt",
"created":"870d9b00-17eb-11e9-b2c0-591f3111d72f",
"floatValue":21.0,
"textValue":null
}
I had in mind something like this:
[1557155484,23.21]
The pair of last float value and timestamps of the node key and field name.
This with no time limitation, not like the following API, which provides the last 'n' float values in the last 1 hour:
/measurement/loadLastFloatValues/{nodeKey}/{fieldName}/{items}
Okay, I get it. I'm going to see what I can do, because the structure of the database it is not an easy task, so, it is on the TO DO list. π
Thank you. I appreciate.