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,
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, setAutoEnableIoTManagers
connection, getAuthenticatedConnectionOrThrow, schedule
public 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, InterruptedException
SetData
instructions.jid
- data
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
setUsingIq(FullJid, Collection)
public IoTSetResponse setUsingIq(org.jxmpp.jid.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.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void installThing(Thing thing)
thing
- the thing to install.public Thing uninstallThing(Thing thing)
public Thing uninstallThing(NodeInfo nodeInfo)