I want to return via my API the last result for each \'device\'. The devices regularly communicate with the API, there is a record of each communication. I want to pull the