Device deletion

Reset a BLE node

  • Reset a node
/**
 * Reset BLE node
 *
 * @param meshAddress {number} - Node address
 */
public abstract resetNode(meshAddress: number): void;
  • Handle node reset success
/**
 * Node reset success event handler
 *
 * @param callback {() => void | Promise<void>} - Node reset callback
 * @returns {() => void}
 */
public onNodeResetSuccess(callback: () => void | Promise<void>): () => void
  • Handle node reset failure
/**
 * Node reset failure event handler
 *
 * @param callback {() => void | Promise<void>} - Node reset callback
 * @returns {() => void}
 */
public onNodeResetFailed(callback: () => void | Promise<void>): () => void