public final class IoTControlManager extends IoTManager
IoTManager.IoTIqRequestHandler| Modifier and Type | Method and Description |
|---|---|
static IoTControlManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
Get the manger instance responsible for the given connection.
|
void |
installThing(Thing thing)
Install a thing in the manager.
|
IoTSetResponse |
setUsingIq(org.jxmpp.jid.FullJid jid,
java.util.Collection<? extends SetData> data)
Control a thing by sending a collection of
SetData instructions. |
IoTSetResponse |
setUsingIq(org.jxmpp.jid.FullJid jid,
SetData data)
Control a thing by sending a collection of
SetData instructions. |
Thing |
uninstallThing(NodeInfo nodeInfo) |
Thing |
uninstallThing(Thing thing) |
isAllowed, isAutoEnableActive, setAllowNonFriends, setAutoEnableIoTManagerspublic static IoTControlManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
connection - the XMPP connection.public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, SetData data) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
SetData instructions.jid - TODO javadoc me pleasedata - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.setUsingIq(FullJid, Collection)public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, java.util.Collection<? extends SetData> data) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
SetData instructions.jid - the thing to control.data - a collection of SetData instructions.IoTSetResponse if successful.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public void installThing(Thing thing)
thing - the thing to install.