Crea sito


com.github.pfichtner.ardulink
Class MqttMain

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

public class MqttMain
extends Object

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Peter Fichtner


Constructor Summary
MqttMain()
           
 
Method Summary
 void close()
           
 void connectToMqttBroker()
           
 void doMain(String... args)
           
 boolean isConnected()
           
static void main(String[] args)
           
 void setAnalogs(int... analogs)
           
 void setBrokerTopic(String brokerTopic)
           
 void setDigitals(int... digitals)
           
 void setThrottleMillis(int throttleMillis)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MqttMain

public MqttMain()
Method Detail

main

public static void main(String[] args)
                 throws org.eclipse.paho.client.mqttv3.MqttSecurityException,
                        org.eclipse.paho.client.mqttv3.MqttException,
                        InterruptedException
Throws:
org.eclipse.paho.client.mqttv3.MqttSecurityException
org.eclipse.paho.client.mqttv3.MqttException
InterruptedException

doMain

public void doMain(String... args)
            throws org.eclipse.paho.client.mqttv3.MqttSecurityException,
                   org.eclipse.paho.client.mqttv3.MqttException,
                   InterruptedException
Throws:
org.eclipse.paho.client.mqttv3.MqttSecurityException
org.eclipse.paho.client.mqttv3.MqttException
InterruptedException

connectToMqttBroker

public void connectToMqttBroker()
                         throws org.eclipse.paho.client.mqttv3.MqttSecurityException,
                                org.eclipse.paho.client.mqttv3.MqttException,
                                InterruptedException
Throws:
org.eclipse.paho.client.mqttv3.MqttSecurityException
org.eclipse.paho.client.mqttv3.MqttException
InterruptedException

isConnected

public boolean isConnected()

close

public void close()
           throws org.eclipse.paho.client.mqttv3.MqttException
Throws:
org.eclipse.paho.client.mqttv3.MqttException

setBrokerTopic

public void setBrokerTopic(String brokerTopic)

setAnalogs

public void setAnalogs(int... analogs)

setDigitals

public void setDigitals(int... digitals)

setThrottleMillis

public void setThrottleMillis(int throttleMillis)


Copyright © 2015. All rights reserved.