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

Issue #60 (minor) #61

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions scenarios/alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ The required `.env` files can be configured manually, we provide the script belo
```bash
# from folder scenarios/alert
source ../../az.env
host_name=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)
mqtt_hostname=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)

echo "MQTT_HOST_NAME=$host_name" > vehicle04.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > vehicle04.env
echo "MQTT_USERNAME=vehicle04" >> vehicle04.env
echo "MQTT_CLIENT_ID=vehicle04" >> vehicle04.env
echo "MQTT_CERT_FILE=vehicle04.pem" >> vehicle04.env
echo "MQTT_KEY_FILE=vehicle04.key" >> vehicle04.env
echo "MQTT_CLEAN_SESSION=false" >> vehicle04.env

echo "MQTT_HOST_NAME=$host_name" > vehicle05.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > vehicle05.env
echo "MQTT_USERNAME=vehicle05" >> vehicle05.env
echo "MQTT_CLIENT_ID=vehicle05" >> vehicle05.env
echo "MQTT_CERT_FILE=vehicle05.pem" >> vehicle05.env
echo "MQTT_KEY_FILE=vehicle05.key" >> vehicle05.env
echo "MQTT_CLEAN_SESSION=false" >> vehicle05.env

echo "MQTT_HOST_NAME=$host_name" > control-tower.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > control-tower.env
echo "MQTT_USERNAME=control-tower" >> control-tower.env
echo "MQTT_CLIENT_ID=control-tower" >> control-tower.env
echo "MQTT_CERT_FILE=control-tower.pem" >> control-tower.env
Expand Down
10 changes: 5 additions & 5 deletions scenarios/command/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ The required `.env` files can be configured manually, we provide the script belo
```bash
# from folder scenarios/command
source ../../az.env
host_name=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)
mqtt_hostname=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)

echo "MQTT_HOST_NAME=$host_name" > vehicle03.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > vehicle03.env
echo "MQTT_USERNAME=vehicle03" >> vehicle03.env
echo "MQTT_CERT_FILE=vehicle03.pem" >> vehicle03.env
echo "MQTT_KEY_FILE=vehicle03.key" >> vehicle03.env

echo "MQTT_HOST_NAME=$host_name" > mobile-app.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > mobile-app.env
echo "MQTT_USERNAME=mobile-app" >> mobile-app.env
echo "MQTT_CERT_FILE=mobile-app.pem" >> mobile-app.env
echo "MQTT_KEY_FILE=mobile-app.key" >> mobile-app.env
Expand Down Expand Up @@ -211,10 +211,10 @@ dotnet build dotnet/command.sln
To run the dotnet sample execute each line below in a different shell/terminal.

```bash
dotnet/command_producer/bin/Debug/net7.0/command_producer --envFile=vehicle03.env
dotnet/command_server/bin/Debug/net7.0/command_server --envFile=vehicle03.env
```
```bash
dotnet/command_consumer/bin/Debug/net7.0/command_consumer --envFile=mobile-app.env
dotnet/command_client/bin/Debug/net7.0/command_client --envFile=mobile-app.env
```

### C
Expand Down
4 changes: 2 additions & 2 deletions scenarios/getting_started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ The required `.env` files can be configured manually, we provide the script belo
```bash
# from folder scenarios/getting_started
source ../../az.env
host_name=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)
mqtt_hostname=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)

echo "MQTT_HOST_NAME=$host_name" > .env
echo "MQTT_HOST_NAME=$mqtt_hostname" > .env
echo "MQTT_USERNAME=sample_client" >> .env
echo "MQTT_CLIENT_ID=sample_client" >> .env
echo "MQTT_CERT_FILE=sample_client.pem" >> .env
Expand Down
8 changes: 4 additions & 4 deletions scenarios/telemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,21 @@ The required `.env` files can be configured manually, we provide the script belo
```bash
# from folder scenarios/telemetry
source ../../az.env
host_name=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)
mqtt_hostname=$(az resource show --ids $res_id --query "properties.topicSpacesConfiguration.hostname" -o tsv)

echo "MQTT_HOST_NAME=$host_name" > vehicle01.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > vehicle01.env
echo "MQTT_USERNAME=vehicle01" >> vehicle01.env
echo "MQTT_CLIENT_ID=vehicle01" >> vehicle01.env
echo "MQTT_CERT_FILE=vehicle01.pem" >> vehicle01.env
echo "MQTT_KEY_FILE=vehicle01.key" >> vehicle01.env

echo "MQTT_HOST_NAME=$host_name" > vehicle02.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > vehicle02.env
echo "MQTT_USERNAME=vehicle02" >> vehicle02.env
echo "MQTT_CLIENT_ID=vehicle02" >> vehicle02.env
echo "MQTT_CERT_FILE=vehicle02.pem" >> vehicle02.env
echo "MQTT_KEY_FILE=vehicle02.key" >> vehicle02.env

echo "MQTT_HOST_NAME=$host_name" > map-app.env
echo "MQTT_HOST_NAME=$mqtt_hostname" > map-app.env
echo "MQTT_USERNAME=map-app" >> map-app.env
echo "MQTT_CLIENT_ID=map-app" >> map-app.env
echo "MQTT_CERT_FILE=map-app.pem" >> map-app.env
Expand Down