public final class IoTControlManager extends IoTManager
IoTManager.IoTIqRequestHandler| Modifier and Type | Method and Description |
|---|---|
static IoTControlManager |
getInstanceFor(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, setAutoEnableIoTManagersconnection, getAuthenticatedConnectionOrThrow, schedulepublic static IoTControlManager getInstanceFor(XMPPConnection connection)
connection - the XMPP connection.public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, SetData data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SetData instructions.jid - data - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionsetUsingIq(FullJid, Collection)public IoTSetResponse setUsingIq(org.jxmpp.jid.FullJid jid, java.util.Collection<? extends SetData> data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SetData instructions.jid - the thing to control.data - a collection of SetData instructions.IoTSetResponse if successful.SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void installThing(Thing thing)
thing - the thing to install.public Thing uninstallThing(Thing thing)
public Thing uninstallThing(NodeInfo nodeInfo)