My Android app allows the user to un-provision a mesh node. To do so, the app just sends a ConfigNodeReset message to the node's unicast address, which works perfectly if the node is reachable.
However, if the destination node is powered off (or otherwise unreachable), then the node is (of course) not receiving the message and hence continues to be part of the mesh network. Which makes sense, however, the behavior I'd like to implement is a little different. When resetting/removing an unreachable node:
- The unreachable node should be removed from Android-nRF-Mesh-Library's internal list of nodes. So the next time the app starts, it does no longer show the node, even if the node becomes reachable again.
- It would be ideal if the node would be "blacklisted", so that later on, when the node becomes reachable again, it would no longer react to messages. Basically locking the node out of its mesh until it gets resetted and re-provisioned.
Now the questions are, how can this be done using the Android-nRF-Mesh-Library? Or differently asked:
How can a node be removed from the Android-nRF-Mesh-Library's internal list of nodes, so that the App does no longer see it?
How can a node be removed from the Mesh network if it is not reachable?
Any clarifications are very much appreciated,
Thank you,
Michael.