com.digi.xbee.api.listeners

## Interface IDiscoveryListener

-     public interface IDiscoveryListener

  Interface defining the required methods that an object should implement to be notified about device discovery events.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `deviceDiscovered(RemoteXBeeDevice discoveredDevice)` Notifies that a remote device was discovered in the network.
    `void` | `discoveryError(String error)` Notifies that an error occurred during the discovery process.
    `void` | `discoveryFinished(String error)` Notifies that the discovery process has finished.

- - ### Method Detail

    - #### deviceDiscovered

          void deviceDiscovered(RemoteXBeeDevice discoveredDevice)

      Notifies that a remote device was discovered in the network.
      Parameters:
        `discoveredDevice` - The discovered remote device.
      See Also:
        `RemoteXBeeDevice`

    - #### discoveryError

          void discoveryError(String error)

      Notifies that an error occurred during the discovery process.

      This method is only called when an error occurs but does not cause the process to finish.

      Parameters:
        `error` - The error message.

    - #### discoveryFinished

          void discoveryFinished(String error)

      Notifies that the discovery process has finished.
      Parameters:
        `error` - The error message, or `null` if the process finished successfully.

© Copyright 2014–2014 Digi International Inc. All rights reserved.