getDevices

@MessageMapping(value = ["get.{uuid}"])
suspend fun getDevices(@DestinationVariable uuid: UUID, @DestinationVariable client: String): RSocketResponse

Get Device request/response RSocket API. Takes arguments only in metadata with uuid as String and client path as String.

For this API it is always assumed that the caller is the owner of the target uuid.

Returns all the devices available for the target account as a HubPayload encoded in ProtoBuf format. In case the operation was successful the HubPayload contains data with a list of the target's devices. When the list is empty it is safe to assume that the uuid is not valid.

The end-user is prompted to check if its registrationId is inside the returned list, if it is not then its device has been replaced by another device. In that case, the end-user should follow the procedure for activating again its device through "devices.{client}.replace.master" API.