Skip to content

Commit

Permalink
[documentation] adopted reviewer comment
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
  • Loading branch information
andrewfg committed Jul 8, 2020
1 parent e14b245 commit e458500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion developers/bindings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,8 @@ In the case that a `property` will be used to match the representation property
updateProperty("uniqueId", uniquePropVal);
```

Alternatively in the case that a `configuration parameter` will be used to match the auto discovery representation property it must be declared in `thing-types.xml` and in the Thing handler's `Configuration` class:
Alternatively in the case that a `configuration parameter` will be used to match the auto discovery representation property, the parameter must be declared in either, a) the `thing-types.xml` file, or b) the `config-description` [XML file](config-xml.md).
And it must also be declared in the Thing handler's `Configuration` class:

```java
public class MyThingConfiguration {
Expand Down
2 changes: 1 addition & 1 deletion developers/bindings/thing-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ A new discovery would then automatically find this Thing again and add it to the
See also [Implementing a Discovery Service](index.md#representation-property)

When comparing representation properties, the auto-ignore service checks for matches between the representation property of the newly discovered Thing, and both the properties and the configuration parameters of existing Things.
If a configuration parameter will be used, then its respective `parameter` shall be declared in the XML `config-description` section:
If a configuration parameter will be used, then its respective `parameter` shall be declared in the XML `config-description` section or the `config-description` [XML file](config-xml.md):

```xml
<thing-type id="thingTypeId">
Expand Down

0 comments on commit e458500

Please sign in to comment.