I wanted to reset the value of description while one property of the thing changed. I used subscription, and set the DataChange to execute the script.
But the Application log showed that the property description is read-only. Is there any way that I can do the job?
To clarify your question, did you make a property named "description"? And you added a subscription for a datachange event of it, right?
If so, can you share your setting for the property and a script for subscription?
The "description" I talk about is thing's description. When we create a thing, we should input name, description, template, thingshape for the thing.
I want to reset the thing's description, when a property named "nickname " changes. I used a subscription to do that. For example, when the value of "nickname" is set to "My First Device ", the thing's description is set to "My First Device".
Hi Miss Liu,
Uh.. If I do as your method, I can finish the job. If I can't do it using a subscription at last, I will use this method.
Thanks for your help.