Interface BrickletRemoteSwitchV2.RemoteStatusBListener

  • All Superinterfaces:
    DeviceListener, java.util.EventListener, TinkerforgeListener
    Enclosing class:
    BrickletRemoteSwitchV2

    public static interface BrickletRemoteSwitchV2.RemoteStatusBListener
    extends DeviceListener
    Returns the address (unique per remote), unit (button number), switch state (on/off) and number of repeats for remote type B. If the remote supports dimming the dim value is used instead of the switch state. The repeats are the number of received identical data packets. The longer the button is pressed, the higher the repeat number. The listener is triggered with every repeat. You have to enable the listener with BrickletRemoteSwitchV2.setRemoteConfiguration(int, int, boolean). The number of repeats that you can set in the configuration is the minimum number of repeats that have to be seen before the listener is triggered for the first time.
    • Method Detail

      • remoteStatusB

        void remoteStatusB​(long address,
                           int unit,
                           int switchTo,
                           int dimValue,
                           int repeats)