Skip to content

Commit

Permalink
[globalcache] Add representation property (#9471)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hilbush <[email protected]>
  • Loading branch information
mhilbush authored Dec 22, 2020
1 parent 393ae49 commit e648fc6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ private synchronized void discover() {
logger.trace("Creating discovery result for: {}, type={}, IP={}", uid,
gcMulticastListener.getModel(), gcMulticastListener.getIPAddress());
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
.withRepresentationProperty(THING_PROPERTY_MAC)
.withLabel(gcMulticastListener.getVendor() + " " + gcMulticastListener.getModel()).build());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<channel-group id="ir-m2" typeId="ir-m2"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<channel-group id="ir-m5" typeId="ir-m5"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<channel-group id="cc-m1" typeId="cc-m1"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<channel-group id="cc-m1" typeId="cc-m1"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<channel-group id="ir-m1" typeId="ir-m1"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<channel-group id="sl-m1" typeId="sl-m1"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<channel-group id="ir-m1-c1" typeId="ir-m1-c1"/>
</channel-groups>

<representation-property>macAddress</representation-property>

<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
Expand Down

0 comments on commit e648fc6

Please sign in to comment.