deprovision method

Future<ConfigNodeResetStatus> deprovision(
  1. MeshManagerApi meshManagerApi,
  2. ProvisionedMeshNode meshNode
)

Will try to deprovision the specified ProvisionedMeshNode by sending ConfigNodeReset message via the unicast address.

Returns a ConfigNodeResetStatus or null if timeout after 5sec.

Throws a method channel error "NOT FOUND" if not found in the currently loaded mesh n/w or an UnsupportedError if the current OS is not supported.

Implementation

Future<ConfigNodeResetStatus> deprovision(
  final MeshManagerApi meshManagerApi,
  final ProvisionedMeshNode meshNode,
) =>
    meshManagerApi.deprovision(meshNode);