Skip to content

Commit

Permalink
Improved seat massager sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz committed Mar 1, 2024
1 parent 91b5eb1 commit 4484f2f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
"@type": "Command",
"@id": "dtmi:sdv:airbag_seat_massager:perform_step;1",
"name": "perfom_step",
"name": "perform_step",
"description": "Perform a step in the sequence.",
"request": {
"name": "request",
Expand Down
2 changes: 1 addition & 1 deletion digital-twin-model/dtdl/dtmi/sdv/obd-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"contents": [
{
"@type": "Property",
"@id": "dtmi:sdv:obd:hybri_bBattery_remaining;1",
"@id": "dtmi:sdv:obd:hybrid_battery_remaining;1",
"name": "hybrid_battery_remaining",
"description": "The remaining hybrid battery life.",
"schema": "integer"
Expand Down
10 changes: 5 additions & 5 deletions digital-twin-model/dtdl/dtmi/sdv/seat_massager-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"fields": [
{
"name": "status",
"schema": "dtmi:sdv:seatmassager:status;1"
"schema": "dtmi:sdv:seat_massager:status;1"
}
]
}
Expand All @@ -59,7 +59,7 @@
"fields": [
{
"name": "status",
"schema": "dtmi:sdv:seatmassager:status;1"
"schema": "dtmi:sdv:seat_massager:status;1"
}
]
}
Expand All @@ -78,7 +78,7 @@
"fields": [
{
"name": "status",
"schema": "dtmi:sdv:seatmassager:status;1"
"schema": "dtmi:sdv:seat_massager:status;1"
}
]
}
Expand All @@ -97,7 +97,7 @@
"fields": [
{
"name": "status",
"schema": "dtmi:sdv:seatmassager:status;1"
"schema": "dtmi:sdv:seat_massager:status;1"
}
]
}
Expand All @@ -106,7 +106,7 @@
],
"schemas": [
{
"@id": "dtmi:sdv:seatmassager:status;1",
"@id": "dtmi:sdv:seat_massager:status;1",
"@type": "Object",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal static class ModelsRepositoryClientExtensions
{
/// <summary>
/// The Parser's DTMI resolver.
/// It asynchronously gets from the models repositpory the DTDL content associated witn each of the provided DTMIs.
/// It asynchronously gets the DTDL content associated with each of the provided DTMIs from the models repository.
/// </summary>
/// <param name="modelRepoClient">The models repository client.</param>
/// <param name="dtmis"></param>
Expand Down
2 changes: 1 addition & 1 deletion samples/interfaces/async_rpc/v1/request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ service Request {
rpc Ask (AskRequest) returns (AskResponse);

// Send a notification.
// This is similar to an ask expect that there is no corresponding answer.
// This is similar to an ask except that there is no corresponding answer.
rpc Notify (NotifyRequest) returns (NotifyResponse);
}

Expand Down
2 changes: 0 additions & 2 deletions samples/seat_massager/provider/src/request_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ pub struct RequestImpl {
pub state: Arc<Mutex<RequestState>>,
}

impl RequestImpl {}

#[tonic::async_trait]
impl Request for RequestImpl {
/// Ask implementation.
Expand Down

0 comments on commit 4484f2f

Please sign in to comment.