field/find API requ...
 
Notifications
Clear all

field/find API request

5 Posts
2 Users
0 Reactions
3,747 Views
(@jean-luc)
Active Member
Joined: 7 years ago
Posts: 6
Topic starter   [#6]

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.



   
Quote
(@admin)
New Member Admin
Joined: 6 years 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
}


   
ReplyQuote
(@jean-luc)
Active Member
Joined: 7 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}


   
ReplyQuote
(@admin)
New Member Admin
Joined: 6 years 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. πŸ™‚



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

Thank you. I appreciate.



   
ReplyQuote
Share: