Package com.pi4j.io.gpio.event
Class IFTTTMakerChannelTriggerEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- com.pi4j.io.gpio.event.IFTTTMakerChannelTriggerEvent
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class IFTTTMakerChannelTriggerEvent extends EventObject - See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEventName()Get the IFTTT event name configured for this trigger.GpioPingetPin()Get the pin number that changed and raised this event.PinStategetState()Get the pin state that activated this trigger.StringgetValue1()Get the IFTTT value1 data for this triggered event.StringgetValue2()Get the IFTTT value2 data for this triggered event.StringgetValue3()Get the IFTTT value2 data for this triggered event.voidsetValue1(String data)Set (override) the value1 data that will be sent to the IFTTT trigger event.voidsetValue2(String data)Set (override) the value2 data that will be sent to the IFTTT trigger event.voidsetValue3(String data)Set (override) the value3 data that will be sent to the IFTTT trigger event.- 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Method Detail- 
getPinpublic GpioPin getPin() Get the pin number that changed and raised this event.- Returns:
- GPIO pin number (not header pin number; not wiringPi pin number)
 
 - 
getStatepublic PinState getState() Get the pin state that activated this trigger.- Returns:
- GPIO pin state
 
 - 
getEventNamepublic String getEventName() Get the IFTTT event name configured for this trigger.- Returns:
- IFTTT event name
 
 - 
getValue1public 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
 
 - 
setValue1public void setValue1(String data) Set (override) the value1 data that will be sent to the IFTTT trigger event.- Parameters:
- data- new value data/string
 
 - 
getValue2public 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
 
 - 
setValue2public void setValue2(String data) Set (override) the value2 data that will be sent to the IFTTT trigger event.- Parameters:
- data- new value data/string
 
 - 
getValue3public 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
 
 - 
setValue3public void setValue3(String data) Set (override) the value3 data that will be sent to the IFTTT trigger event.- Parameters:
- data- new value data/string
 
 
- 
 
-