How to retrieve name of a thing by specifying ID and accessing its properties
Good morning!
I have created a few Things which inherit the properties from a ThingTemplate which holds a property Identifier string and another property for temperature.
In addition, I have created a helper thing to create a static service. This service gets two inputs: an identifier string and the temperature.
The service should retrieve the name of the thing which holds the same identifier string and should update the temperature property.
I have already found a function which seems to be made for that. It is called GetThingNameForIdentifier(identifier) and returns a THINGNAME.
But I haven't found anything on the internet on how to use this datatype and how to access the thing's properties.
Any suggestions?
Thank you in advance for your help
Theresa~

