Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Mar 18, 2024
1 parent 51a9952 commit 09aee52
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
${{ runner.os }}-nuget
- name: Build MQTT Connector's Azure Function
run: |
dotnet build cloud_connectors/azure/mqtt_connector/azure_function/src/function.csproj -warnaserror
dotnet build cloud_connectors/azure/mqtt_connector/azure_function/tests/MQTTConnectorAzureFunction.Tests.csproj -warnaserror
dotnet build cloud_connectors/resources/azure_function/src/function.csproj -warnaserror
dotnet build cloud_connectors/resources/azure_function/tests/MQTTConnectorAzureFunction.Tests.csproj -warnaserror
- name: MQTT Connector's Azure Function Tests
run: dotnet test cloud_connectors/azure/mqtt_connector/azure_function/tests/MQTTConnectorAzureFunction.Tests.csproj
run: dotnet test cloud_connectors/resources/azure_function/tests/MQTTConnectorAzureFunction.Tests.csproj
2 changes: 1 addition & 1 deletion .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:
with:
languages: ${{ matrix.language }}
- name: Build MQTT Connector's Azure Function
run: dotnet build cloud_connectors/azure/mqtt_connector/azure_function/src/function.csproj
run: dotnet build cloud_connectors/resources/azure_function/src/function.csproj
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions cloud_connectors/mqtt_connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is an example implementation of a Cloud Connector. The role of the Cloud Co

The MQTT Cloud Connector forwards data emitted by Freyja to an MQTT broker. In the sample architecture presented here, this is an Azure Event Grid using the MQTT Protocol. This cloud connector accepts requests via gRPC using the [Freyja standard cloud connector contract](https://github.com/eclipse-ibeji/freyja/blob/main/interfaces/cloud_connector/v1/cloud_connector.proto), thus making it compatible with Freyja's standard cloud adapter. This cloud connector also includes an associated Azure Function which will forward the data to Azure Digital Twins, but the data from Azure Event Grid can be ingested by any desired cloud architecture using the appropriate connector.

![Component Diagram](../../../docs/diagrams/azure_mqtt_cloud_connector.svg)
![Component Diagram](../../docs/diagrams/azure_mqtt_cloud_connector.svg)

Note that since this cloud connector interfaces with MQTT, it can be configured for use with any MQTT endpoint, not only the Azure-based solution shown here. The architecture diagram and the setup steps presented in this document provide a sample of a full end-to-end architecture that integrates this connector with a cloud digital twin solution.

Expand All @@ -30,7 +30,7 @@ You will need to be an Owner for your Azure resource group to deploy Azure resou

### Deploy Azure Digital Twins

In your Azure Digital Twins resource, you will also need to create digital twin instances. This repository contains [DTDL samples](../sample-dtdl/) to get started.
In your Azure Digital Twins resource, you will also need to create digital twin instances. This repository contains [DTDL samples](../resources/sample_dtdl/) to get started.

>NOTE: The deployment scripts are compatible with the [`mixed` sample for Ibeji](https://github.com/eclipse-ibeji/ibeji/tree/main/samples/mixed) and the smart trailer sample from this repository. These scripts will will upload these sample models and create instances of them for you. Modification of the Cloud Digital Twin or setup scripts may be required for other scenarios.
Expand Down
6 changes: 3 additions & 3 deletions cloud_connectors/resources/scripts/digital_twins_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ echo -e "\nAssigning the Azure Digital Twins Data Owner role"
user_object_id=$(az ad signed-in-user show --query id -o tsv)
az dt role-assignment create --dt-name "$digital_twin_name" --assignee "$user_object_id" --role "Azure Digital Twins Data Owner"

# Upload the sample-dtdl models
echo -e "\nUploading sample-dtdl models"
for file in $(find ../sample-dtdl -name "*.json"); do
# Upload the sample dtdl models
echo -e "\nUploading sample dtdl models"
for file in $(find ../sample_dtdl -name "*.json"); do
if ! az dt model create --dt-name ${digital_twin_name} --models $file; then
echo "$file" dtdl already uploaded.
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ echo -e "\nAssigning the Azure Digital Twins Data Owner role"
user_object_id=$(az ad signed-in-user show --query id -o tsv)
az dt role-assignment create --dt-name "$digital_twin_name" --assignee "$user_object_id" --role "Azure Digital Twins Data Owner"

# Upload the sample-dtdl models
echo -e "\nUploading sample-dtdl models"
for file in $(find ../sample-dtdl -name "trailer.json"); do
# Upload the sample dtdl models
echo -e "\nUploading sample dtdl models"
for file in $(find ../sample_dtdl -name "trailer.json"); do
if ! az dt model create --dt-name ${digital_twin_name} --models $file; then
echo "$file" dtdl already uploaded.
fi
Expand Down

0 comments on commit 09aee52

Please sign in to comment.