Crea sito


com.github.pfichtner.ardulink
Class AbstractMqttAdapter

java.lang.Object
  extended by com.github.pfichtner.ardulink.AbstractMqttAdapter

public abstract class AbstractMqttAdapter
extends Object

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Peter Fichtner


Nested Class Summary
static class AbstractMqttAdapter.AbstractPinHandler
           
static class AbstractMqttAdapter.AnalogHandler
          Does handle mqtt messages for analog pins.
 class AbstractMqttAdapter.AnalogReadChangeListenerConfigurer
           
static class AbstractMqttAdapter.CompactStrategy
           
static class AbstractMqttAdapter.ControlHandlerAnalog
          Does handle mqtt messages for controlling Ardulink (start/stop analog listeners).
static class AbstractMqttAdapter.ControlHandlerDigital
          Does handle mqtt messages for controlling Ardulink (start/stop digital listeners).
static class AbstractMqttAdapter.DigitalHandler
          Does handle mqtt messages for digital pins.
static interface AbstractMqttAdapter.Handler
           
 
Constructor Summary
AbstractMqttAdapter(org.zu.ardulink.Link link, Config config)
           
AbstractMqttAdapter(org.zu.ardulink.Link link, Config config, Collection<AbstractMqttAdapter.Handler> handlers)
           
 
Method Summary
 AbstractMqttAdapter.AnalogReadChangeListenerConfigurer configureAnalogReadChangeListener(int pin)
           
 void enableAnalogPinChangeEvents(int pin)
           
 void enableDigitalPinChangeEvents(int pin)
           
 void toArduino(String topic, String message)
          This method should be called by the publisher when a new mqtt message has arrived.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMqttAdapter

public AbstractMqttAdapter(org.zu.ardulink.Link link,
                           Config config)

AbstractMqttAdapter

public AbstractMqttAdapter(org.zu.ardulink.Link link,
                           Config config,
                           Collection<AbstractMqttAdapter.Handler> handlers)
Method Detail

toArduino

public void toArduino(String topic,
                      String message)
This method should be called by the publisher when a new mqtt message has arrived.

Parameters:
topic - the message's topic
message - the payload

enableDigitalPinChangeEvents

public void enableDigitalPinChangeEvents(int pin)

configureAnalogReadChangeListener

public AbstractMqttAdapter.AnalogReadChangeListenerConfigurer configureAnalogReadChangeListener(int pin)

enableAnalogPinChangeEvents

public void enableAnalogPinChangeEvents(int pin)


Copyright © 2015. All rights reserved.