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?
Remove node from node itself
-
- Posts: 308
- Joined: Wed Feb 20, 2019 7:02 am
Re: Remove node from node itself
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
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
Who is online
Users browsing this forum: No registered users and 8 guests