Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Alert about node UUID conflict before, not after provisioning #512

Merged
merged 2 commits into from
May 30, 2023

Conversation

philips77
Copy link
Member

Before

When a node was reprovisioned without being removed from the network provisioning was successful, but adding the node to the network was failing due to UUID conflict. The ProvisioningDelegate was called with .failure state.

The Device key was lost and the node could not be configured despite being correctly provisioned.

After

User gets a warning that a node with conflicting UUID is already in the network and needs to be removed prior to reprovisioning.

@philips77
Copy link
Member Author

Breaking change: MeshNetworkManager.provision(unprovisionedDevice:over:) will now throw MeshNetworkError.nodeAlreadyExist if the UUID of the unprovisioned device conflicts with any device in the network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant