Class IoTDataManager

java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.iot.IoTManager
org.jivesoftware.smackx.iot.data.IoTDataManager

public final class IoTDataManager extends IoTManager
A manager for XEP-0323: Internet of Things - Sensor Data.
See Also:
  • Method Details

    • getInstanceFor

      public static IoTDataManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
      Get the manger instance responsible for the given connection.
      Parameters:
      connection - the XMPP connection.
      Returns:
      a manager instance.
    • installThing

      public void installThing(Thing thing)
      Install a thing in the manager. Activates data read out functionality (if provided by the thing).
      Parameters:
      thing - the thing to install.
    • uninstallThing

      public Thing uninstallThing(Thing thing)
    • uninstallThing

      public Thing uninstallThing(NodeInfo nodeInfo)
    • requestMomentaryValuesReadOut

      public List<IoTFieldsExtension> requestMomentaryValuesReadOut(org.jxmpp.jid.EntityFullJid jid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.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:
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.