Class IFTTTMakerChannelTriggerEvent

    • Method Detail

      • getPin

        public GpioPin getPin()
        Get the pin number that changed and raised this event.
        Returns:
        GPIO pin number (not header pin number; not wiringPi pin number)
      • getState

        public PinState getState()
        Get the pin state that activated this trigger.
        Returns:
        GPIO pin state
      • getEventName

        public String getEventName()
        Get the IFTTT event name configured for this trigger.
        Returns:
        IFTTT event name
      • getValue1

        public String getValue1()
        Get the IFTTT value1 data for this triggered event. By default, this is the GPIO pin name. The consumer can optionally override this value using the 'setValue1()' method.
        Returns:
        IFTTT value1 data
      • setValue1

        public void setValue1​(String data)
        Set (override) the value1 data that will be sent to the IFTTT trigger event.
        Parameters:
        data - new value data/string
      • getValue2

        public String getValue2()
        Get the IFTTT value2 data for this triggered event. By default, this is the GPIO state value (integer). The consumer can optionally override this value using the 'setValue2()' method.
        Returns:
        IFTTT value2 data
      • setValue2

        public void setValue2​(String data)
        Set (override) the value2 data that will be sent to the IFTTT trigger event.
        Parameters:
        data - new value data/string
      • getValue3

        public String getValue3()
        Get the IFTTT value2 data for this triggered event. By default, this is a JSON string of data including all details about the GPIO pin and PinState. The consumer can optionally override this value using the 'setValue3()' method.
        Returns:
        IFTTT value2 data
      • setValue3

        public void setValue3​(String data)
        Set (override) the value3 data that will be sent to the IFTTT trigger event.
        Parameters:
        data - new value data/string