Members
rawThing :HostThing
raw Java Thing
Type:
- HostThing
bridgeUID :string|null
Thing's bridge UID as string
or null
if the Thing has no bridge
Type:
- string | null
label :string
Thing's label
Type:
- string
location :string
Physical location
Type:
- string
status :string
Thing stattus
Type:
- string
statusInfo :string
Thing status info (more detailed status text)
Type:
- string
thingTypeUID :string
Thing type UID
Type:
- string
uid :string
Thing UID
Type:
- string
isEnabled :boolean
Whether the Thing is enabled or not
Type:
- boolean
Methods
setLabel(label)
Set the label.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | Thing label |
setLocation(location)
Sets the physical location.
Parameters:
Name | Type | Description |
---|---|---|
location |
string | physical location of the Thing |
setProperty(name, value)
Sets the property value for the property identified by the given name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | name of the property |
value |
string | value for the property |
setEnabled(enabled)
Sets the enabled status of the Thing.
Parameters:
Name | Type | Description |
---|---|---|
enabled |
boolean | whether the Thing is enabled or not |