Update things.md (#1186)

Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere.
pull/1191/head
jadcx 2020-04-06 22:55:53 +01:00 committed by GitHub
parent d10781bd11
commit bffe35e08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ The resulting UID of the thing is `hue:0210:mybridge:bulb1`.
Bridges that are defined somewhere else can also be referenced in the DSL: Bridges that are defined somewhere else can also be referenced in the DSL:
```xtend ```xtend
Thing hue:0210:mybridge:bulb (hue:bridge:mybridge) [lightId="3"] Thing hue:0210:mybridge:bulb "Label" (hue:bridge:mybridge) @ "Location" [lightId="3"]
``` ```
The referenced bridge is specified in the parentheses. The referenced bridge is specified in the parentheses.