Page 1 of 1

Remove node from node itself

Posted: Sat Jan 30, 2021 8:46 pm
by chmoore889
I want a Rainmaker node to be removed from a user's account when that node is reset. I've implemented the button on my board to reset the device and I could easily add in a function call to remove the node. However, I see no such function in the documentation and it seems the only way to remove the node is through the REST API.

I guess I could call the REST API from my node, but this would be a pain to do and potentially insecure since I would have to store the user's username and password in the node's flash.

Any solutions for this or just suggestions in general?

Re: Remove node from node itself

Posted: Mon Feb 01, 2021 10:01 am
by ESP_Piyush
Hello,

The node itself cannot remove the user-node mapping. It can be removed only by the user via the REST API (normally triggered from the phone app or CLI) or if a new user performs user-node mapping with the same node. This is preferable so that the node side logic stays simpler and user access and permissions can be managed completely by the cloud and client apps.

Regards,
Piyush