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(FullJid jid,
Collection<? extends SetData> data)
Control a thing by sending a collection of
SetData instructions. |
IoTSetResponse |
setUsingIq(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(FullJid jid, SetData data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SetData instructions.jid - data - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionsetUsingIq(FullJid, Collection)public IoTSetResponse setUsingIq(FullJid jid, Collection<? extends SetData> data) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SetData instructions.jid - the thing to control.data - a collection of SetData instructions.IoTSetResponse if successful.SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void installThing(Thing thing)
thing - the thing to install.public Thing uninstallThing(Thing thing)
public Thing uninstallThing(NodeInfo nodeInfo)