Package org.jivesoftware.smackx.iot.data
Class IoTDataManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.iot.IoTManager
org.jivesoftware.smackx.iot.data.IoTDataManager
A manager for XEP-0323: Internet of Things - Sensor Data.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.iot.IoTManager
IoTManager.IoTIqRequestHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic IoTDataManager
getInstanceFor
(XMPPConnection connection) Get the manger instance responsible for the given connection.void
installThing
(Thing thing) Install a thing in the manager.Try to read out a things momentary values.uninstallThing
(NodeInfo nodeInfo) uninstallThing
(Thing thing) Methods inherited from class org.jivesoftware.smackx.iot.IoTManager
isAllowed, isAutoEnableActive, setAllowNonFriends, setAutoEnableIoTManagers
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Method Details
-
getInstanceFor
Get the manger instance responsible for the given connection.- Parameters:
connection
- the XMPP connection.- Returns:
- a manager instance.
-
installThing
Install a thing in the manager. Activates data read out functionality (if provided by the thing).- Parameters:
thing
- the thing to install.
-
uninstallThing
-
uninstallThing
-
requestMomentaryValuesReadOut
public List<IoTFieldsExtension> requestMomentaryValuesReadOut(EntityFullJid jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException Try to read out a things momentary values.- Parameters:
jid
- the full JID of the thing to read data from.- Returns:
- a list with the read out data.
- Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-