Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add streaming sample #40

Merged
merged 27 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
3 changes: 3 additions & 0 deletions .accepted_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ Chariott's
chariott
com
config
dev
digitaltwins
dir
dt
dtdl
DTDL
en
fontconfig
gcc
gcc's
github
Expand All @@ -31,6 +33,7 @@ json
JSON
ld
LD
libfontconfig
microsoft
minimalistic
mosquitto
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[workspace]

# Use version 2 of the feature resolver.
# This is needed by a dependency of the show-image crate.
resolver = "2"
ashbeitz marked this conversation as resolved.
Show resolved Hide resolved

members = [
Expand Down Expand Up @@ -53,6 +55,5 @@ tokio-stream = "0.1.14"
tonic = "0.9.2"
tonic-build = "0.9.2"
url = "2.3.1"
uuencode = "0.1.5"
uuid = "1.2.2"
yaml-rust = "0.4"
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- [Install gcc](#install-gcc)
- [Install Rust](#install-rust)
- [Install Protobuf Compiler](#install-protobuf-compiler)
- [Install fontconfig-dev library](#install-fontconfig-dev-lib)
- [Install MQTT Broker](#install-mqtt-broker)
- [Cloning the Repo](#cloning-the-repo)
- [Developer Notes](#developer-notes)
- [JSON-LD Crate](#json-ld-crate)
Expand Down Expand Up @@ -61,7 +63,17 @@ The toolchain version is managed by the `rust-toolchain.toml` file. If you do no

You will need to install the Protobuf Compiler. This can be done by executing:

`sudo apt install -y protobuf-compiler`
```shell
sudo apt install -y protobuf-compiler
```

### <a name="install-fontconfig-dev-lib">Install fontconfig-dev library</a>
ashbeitz marked this conversation as resolved.
Show resolved Hide resolved
ashbeitz marked this conversation as resolved.
Show resolved Hide resolved

You will need to install the fontconfig-dev library. This can be done by executing:

```shell
sudo apt install -y libfontconfig-dev
```

### <a name="install-mqtt-broker">Install MQTT Broker</a>

Expand Down
2 changes: 1 addition & 1 deletion digital-twin-model/dtdl/v3/spec/sdv/hvac.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@type": "Property",
"@id": "dtmi:sdv:HVAC:AmbientAirTemperature;1",
"name": "AmbientAirTemperature",
"description": "The immediate surroundings air temperature (in Fahrenheit).",
"description": "The immediate surroundings' air temperature (in Fahrenheit).",
"schema": "integer"
},
{
Expand Down
14 changes: 7 additions & 7 deletions docs/design/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ DTDL can identify and specify each of the resources. Below is an example of a HV

#### Register

Below is the sequence diagram for the Register activity.
The sequence diagram for the Register activity is shown below.

![Sequence Diagram](diagrams/register_sequence.svg)

#### Find by Id

Below is the sequence diagram for the Find-By-Id activity.
The sequence diagram for the Find-By-Id activity is shown below.

![Sequence Diagram](diagrams/findbyid_sequence.svg)

Expand All @@ -86,31 +86,31 @@ Below is the sequence diagram for the Find-By-Id activity.

#### Get

The sequence diagram for a Digital Twin Consumer using the Get operation.
The sequence diagram for a Digital Twin Consumer using the Get operation is shown below.

![Sequence Diagram](diagrams/get_sequence.svg)

#### Set

The sequence diagram for a Digital Twin Consumer using the Set operation.
The sequence diagram for a Digital Twin Consumer using the Set operation is shown below.

![Sequence Diagram](diagrams/set_sequence.svg)

#### Subscribe

The sequence diagram for a Digital Twin Consumer using the Subscribe operation.
The sequence diagram for a Digital Twin Consumer using the Subscribe operation is shown below.

![Sequence Diagram](diagrams/subscribe_sequence.svg)

#### Invoke

The sequence diagram for a Digital Twin Consumer using the Invoke operation.
The sequence diagram for a Digital Twin Consumer using the Invoke operation is shown below.

![Sequence Diagram](diagrams/invoke_sequence.svg)

#### Stream

The sequence diagram for a Digital Twin Consumer using the Stream operation.
The sequence diagram for a Digital Twin Consumer using the Stream operation is shown below.

![Sequence Diagram](diagrams/stream_sequence.svg)

Expand Down
2 changes: 1 addition & 1 deletion docs/design/diagrams/findbyid_sequence.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entityAccessInfo:
{
name: "AmbientAirTemperature"
id: "dtmi:sdv:HVAC:AmbientAirTemperature;1"
description: "The immediate surroundings air temperature (in Fahrenheit)."
description: "The immediate surroundings' air temperature (in Fahrenheit)."
endpointInfoList: [
{
protocol: "grpc"
Expand Down
2 changes: 1 addition & 1 deletion docs/design/diagrams/findbyid_sequence.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/design/diagrams/get_sequence.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entityAccessInfo:
{
name: "AmbientAirTemperature"
id: "dtmi:sdv:HVAC:AmbientAirTemperature;1"
description: "The immediate surroundings air temperature (in Fahrenheit)."
description: "The immediate surroundings' air temperature (in Fahrenheit)."
endpointInfoList: [
{
protocol: "grpc"
Expand Down
Loading