public final class IoTDataManager extends IoTManager
IoTManager.IoTIqRequestHandler
Modifier and Type | Method and Description |
---|---|
static IoTDataManager |
getInstanceFor(XMPPConnection connection)
Get the manger instance responsible for the given connection.
|
void |
installThing(Thing thing)
Install a thing in the manager.
|
List<IoTFieldsExtension> |
requestMomentaryValuesReadOut(org.jxmpp.jid.EntityFullJid jid)
Try to read out a things momentary values.
|
Thing |
uninstallThing(NodeInfo nodeInfo) |
Thing |
uninstallThing(Thing thing) |
isAllowed, isAutoEnableActive, setAllowNonFriends, setAutoEnableIoTManagers
connection, getAuthenticatedConnectionOrThrow, schedule
public static IoTDataManager getInstanceFor(XMPPConnection connection)
connection
- the XMPP connection.public void installThing(Thing thing)
thing
- the thing to install.public Thing uninstallThing(Thing thing)
public Thing uninstallThing(NodeInfo nodeInfo)
public List<IoTFieldsExtension> requestMomentaryValuesReadOut(org.jxmpp.jid.EntityFullJid jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
jid
- the full JID of the thing to read data from.SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException