field/find API requ...
 
Notifications
Clear all

field/find API request


Jean-Luc
(@jean-luc)
Active Member
Joined: 2 years ago
Posts: 6
Topic starter  

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.

This topic was modified 11 months ago by admin

Quote
admin
(@admin)
Member Admin
Joined: 11 months ago
Posts: 4
 

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
}
This post was modified 11 months ago 2 times by admin

ReplyQuote
Jean-Luc
(@jean-luc)
Active Member
Joined: 2 years ago
Posts: 6
Topic starter  

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}
This post was modified 11 months ago by admin

ReplyQuote
admin
(@admin)
Member Admin
Joined: 11 months ago
Posts: 4
 

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. 🙂

This post was modified 11 months ago by admin

ReplyQuote
Jean-Luc
(@jean-luc)
Active Member
Joined: 2 years ago
Posts: 6
Topic starter  

Thank you. I appreciate.


ReplyQuote
Share: