Package com.tinkerforge

Examples of com.tinkerforge.BrickletIndustrialDigitalIn4$InterruptListener


   * <!-- end-user-doc -->
   * @generated
   */
  public void setTinkerforgeDevice(BrickletIndustrialDigitalIn4 newTinkerforgeDevice)
  {
    BrickletIndustrialDigitalIn4 oldTinkerforgeDevice = tinkerforgeDevice;
    tinkerforgeDevice = newTinkerforgeDevice;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_IN4__TINKERFORGE_DEVICE, oldTinkerforgeDevice, tinkerforgeDevice));
  }
View Full Code Here


   * @generated NOT
   */
  public void enable() {
    logger.debug("{} enable called on MBrickletIndustrialDigitalIn4",
        LoggerConstants.TFINIT);
    tinkerforgeDevice = new BrickletIndustrialDigitalIn4(getUid(),
        getIpConnection());
    if (tfConfig != null) {
      if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature(
          "debouncePeriod"))) {
        setDebouncePeriod(tfConfig.getDebouncePeriod());
View Full Code Here

    setSensorValue(HighLowValue.UNDEF);
    MBrickletIndustrialDigitalIn4 bricklet = getMbrick();
    if (bricklet == null) {
      logger.error("{} No brick found for Digital4In: {} ", LoggerConstants.TFINIT, subId);
    } else {
      BrickletIndustrialDigitalIn4 brickletIndustrialDigitalIn4 = bricklet.getTinkerforgeDevice();
      interruptListener = new InterruptListener();
      brickletIndustrialDigitalIn4.addInterruptListener(interruptListener);
      fetchSensorValue();
    }
  }
View Full Code Here

TOP

Related Classes of com.tinkerforge.BrickletIndustrialDigitalIn4$InterruptListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.