Skip to content

Commit

Permalink
use retain flag when publishing registration messages
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Jul 14, 2023
1 parent 1f111f3 commit 2347e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/contribute/design/mqtt-topic-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ graph LR
The equipment, which is a conveyor belt called "belt01", is located in factory "factory01", in the "hallA" building, in the "packaging" area. The conveyor belt can be registered as a child-device by publishing the following message.

```sh te2mqtt
tedge mqtt pub 'te/factory01/hallA/packaging/belt001' '{
tedge mqtt pub -r 'te/factory01/hallA/packaging/belt001' '{
"@type": "child-device",
"displayName": "belt001",
"type": "ConveyorBelt",
Expand Down Expand Up @@ -158,7 +158,7 @@ When applying your own semantics to the **identifier**, you can leave any segmen
For example, if it does not make sense to have the factory and building in the **identifier**, then they can be removed and the equipment can be registered using:

```sh te2mqtt
tedge mqtt pub 'te/packaging/belt001' '{
tedge mqtt pub -r 'te/packaging/belt001' '{
"@type": "child-device"
}'
```
Expand Down

0 comments on commit 2347e73

Please sign in to comment.