Package 

Interface IDeviceListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onDpUpdate(String devId, Map<String, Object> dpStr) On device data points code updated
      abstract void onRemoved(String devId) On device removed
      abstract void onStatusChanged(String devId, boolean online) On device online/offline
      abstract void onNetworkStatusChanged(String devId, boolean status) On network status changed
      abstract void onDevInfoUpdate(String devId) On device info updated.(like name and so on).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onDpUpdate

         abstract void onDpUpdate(String devId, Map<String, Object> dpStr)

        On device data points code updated

        Parameters:
        devId - Device id
        dpStr - Data points code map
      • onRemoved

         abstract void onRemoved(String devId)

        On device removed

        Parameters:
        devId - Device id
      • onStatusChanged

         abstract void onStatusChanged(String devId, boolean online)

        On device online/offline

        Parameters:
        devId - Device id
        online - Is the device online
      • onNetworkStatusChanged

         abstract void onNetworkStatusChanged(String devId, boolean status)

        On network status changed

        Parameters:
        devId - Device id
        status - Is the network available
      • onDevInfoUpdate

         abstract void onDevInfoUpdate(String devId)

        On device info updated.(like name and so on).

        Parameters:
        devId - Device id