com.datecs.hub

## Interface SlaveConnection

-     public interface SlaveConnection

  Listen for slave connection state changed.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onSlaveConnected(int slaveID)` This method is called when new device is connected.
    `void` | `onSlaveDisconnected(int slaveID, boolean overCurrent)` This method is call when device is disconnected or communication is not possible.

- - ### Method Detail

    - #### onSlaveConnected

          void onSlaveConnected(int slaveID)

      This method is called when new device is connected.
      Parameters:
        `slaveID` - slave identifier.

    - #### onSlaveDisconnected

          void onSlaveDisconnected(int slaveID,
                                   boolean overCurrent)

      This method is call when device is disconnected or communication is not possible.
      Parameters:
        `slaveID` - slave identifier.
        `overCurrent` - when overcurrent condition is detected on USB slave and it is temporary disabled.