kapua icon indicating copy to clipboard operation
kapua copied to clipboard

API REST: Get last position with the device information

Open pintify opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Simply getting the device position easily and with reliability in the API REST. It may also be of use in the console, in the Device Description view.

Describe the solution you'd like I'd expect for the {scopeId}/devices and .../{deviceId} requests to return the position among the fields. There is currently only a way to get the position using the /devices/{deviceId}/events?resource=BIRTH request, sorting the data returned by date, and extracting the position from the most recent. However this workaround may be very expensive when there are large amount for BIRTH events (particularly if it requires pagination) and it is not a guarantee for the developer that this is the last position as a new event could have a newer position or even the data sent (when it is positioned) could have updated this info.

Describe alternatives you've considered A whole new endpoint for positioning that could provide position history. Very useful for tracking use cases.

pintify avatar Dec 23 '20 16:12 pintify

Hi @pintify ,

Thanks for the suggestion! We will evaluate the position tracking for a device.

Regards,

Alberto

Coduz avatar Dec 23 '20 16:12 Coduz

This question is of interest for our use case as well. Is there any update to the response?

swiftconnect avatar May 24 '21 01:05 swiftconnect