Allow Site for device to be changed

54 views
Skip to first unread message

Vamsi Krishna Marri

unread,
Apr 11, 2017, 7:09:27 AM4/11/17
to SiteWhere
Hi Derek,

Currently I see that it is not possible to change the Site for a device. I know that you are planning to allow device specification to be changed (https://sitewhere.atlassian.net/browse/SITEWHERE-361). In addition that, is it possible to allow Site to be changed for a device?

Thanks,
Vamsi.




Fanf Fanff

unread,
Apr 11, 2017, 9:21:36 AM4/11/17
to SiteWhere
Hi,

I had the same wish for a project, and I planned to use the api to do that. I wonder if its a good solution, I mean, it works, but its heavy:

* Check via API the status of the device.
* If assignated, remove the assignment
* soft remove the device (like deleted = True )
* Check the site and add the device (specification is the same because its a site on the same tenant)
* Add the assignement as desired

This would use several API call. The dificult part is "what to do if I get an error in the middle"

Thank you in advance if you have recommendation or piece for advices on this.

François

Derek Adams

unread,
Aug 7, 2017, 8:36:47 AM8/7/17
to SiteWhere
Sorry for the late response on this issue. It will be fixed in the 1.12 release that will be available this week. See the GitHub issue here:


Regards,
Derek

Vamsi Krishna Marri

unread,
Aug 7, 2017, 8:51:08 AM8/7/17
to SiteWhere
Thank you very much Derek.

Marcel van W

unread,
Mar 16, 2018, 12:47:13 PM3/16/18
to SiteWhere
I am using sitewhere 1.12, so with the possibility to change the site of assigned devices, but when I change the site of an assignment and go to the sites page to watch the assignments of a site, it does not show up at the new site, but when I go to the old site it is still there, so the assignment stays at the original site. Is this supposed to be like this? I would think the assignment should move to the new site. 

Thanks,

Marcel
Reply all
Reply to author
Forward
0 new messages