Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Support resolved URIs #95

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions uprotocol/uri.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ message UUri {
// An Authority represents the deployment location of a specific Software Entity.
// Authority can be represented in either a name (i.e example.com), ip address (205.236.147.1)
// or an ID (i.e. VIN, SHA 128, or any other identifier that is less than 255 bytes.
// *NOTE:* When Authority is empty (neither name, ip, or id is set) the authority
// *NOTE:* When Authority is empty (neither name, ip, or id are set) the authority
// is local.
message UAuthority {
// Remote authority information, if not present, authority is local
oneof remote {
string name = 1; // domain & device name as a string
bytes ip = 2; // IPv4 or IPv6 Address in byte format
bytes id = 3; // Unique ID for the device, could be a VIN, SHA 128, or any other identifier
// *NOTE:* MAX length is 255 bytes
}
optional string name = 1; // Domain & device name as a string
optional bytes ip = 2; // IPv4 or IPv6 Address in byte format
optional bytes id = 3; // Unique ID for the device, could be a VIN, SHA 128, or any other identifier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the id is a VIN, does that mean it does not appear in the name?
I think it is important to make this contract clear since a uE external to the vehicle usually uses the VIN in the datamodel to identify the car.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is vendor/OEM specific, we cannot dictate that in the protocol

// *NOTE:* MAX length is 255 bytes
}


Expand Down