Remove node from node itself

chmoore889
Posts: 2
Joined: Sat Dec 26, 2020 12:50 am

Remove node from node itself

Postby chmoore889 » Sat Jan 30, 2021 8:46 pm

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?

ESP_Piyush
Posts: 259
Joined: Wed Feb 20, 2019 7:02 am

Re: Remove node from node itself

Postby ESP_Piyush » Mon Feb 01, 2021 10:01 am

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

Who is online

Users browsing this forum: No registered users and 35 guests