-
Notifications
You must be signed in to change notification settings - Fork 49
iotkit-agent resets attributes on enableiot.com #82
Comments
In Device API there is no support for adding custom attribute into already existing ones. Device attributes are threaten as one atomic object. Because of that old attributes will be erased, each time when you made a device update. |
I am confused why you say you do not plan on adding custom attributes. The dashboard for enableiot.com current has the feature for user to add new, custom attributes to the device. So why are you not supporting what the web interface already lets you do? |
Dashboard actually doesn't add attributes - it get's attributes and then append new ones and do update. This functionality isn't provided in iotkit-agent now. |
We have fixed this issue in latest commit |
This issue is fixed only for REST protocol. |
When setting attributes either via the REST interface or the dashboard for a devices, if the device has the iotkit-agent active, the iotkit-agent will erase all custom attributes from the backend, leaving only the attributes it adds. Please stop the iotkit-agent from wiping out that metadata via a device update.
The text was updated successfully, but these errors were encountered: