Skip to content

Commit

Permalink
Use "true" instead of "on" (#89)
Browse files Browse the repository at this point in the history
I guess part of this convention is not only how devices/attributes/nodes/properties present themselves, but also to somewhat structure the messages. Be consistent with the example where a boolean value is sent. Use "true" instead of "on".
  • Loading branch information
David Gräff authored and marvinroger committed Apr 27, 2018
1 parent fb8d153 commit 5cbe5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ This especially fits well with MQTT, because of retained message.
For example, a `kitchen-light` device exposing a `light` node would subscribe to `homie/kitchen-light/light/power/set` and it would receive:

```java
homie/kitchen-light/light/power/set ← "on"
homie/kitchen-light/light/power/set ← "true"
```

The device would then turn on the light, and update its `power` state.
Expand Down

0 comments on commit 5cbe5ee

Please sign in to comment.