Skip to content
Merged
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
🤔 Add details on how to interact with range property
Add hint to help people figure out how to interact with
range properties. Especially document the `_` separator.
  • Loading branch information
LiyouZhou authored Sep 3, 2017
commit 13745bf97c8fdd3bd11e6979f4d95dcf9bb88cdb
10 changes: 10 additions & 0 deletions docs/advanced-usage/range-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ void setup() {
}
```

On the mqtt broker you will see the following message show up:
```
topic message
--------------------------------------------------------
homie/<device id>/strip/$type strip
homie/<device id>/strip/$properties led[1-100]:settable
```

You can then publish the value `on` to topic `homie/<device id>/strip/led_1/set` to turn on led number 1.

See the following example for a concrete use case:

[![GitHub logo](../assets/github.png) LedStrip](https://github.com/marvinroger/homie-esp8266/blob/develop/examples/LedStrip/LedStrip.ino)