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 - data - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionsetUsingIq(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.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void installThing(Thing thing)
thing - the thing to install.