Package 

Interface IDevListener


  • 
    public interface IDevListener
    
                        

    The device status change listener.

    • Method Summary

      Modifier and Type Method Description
      abstract void onDpUpdate(String devId, String 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, String dpStr)

        On device data points code updated

        Parameters:
        devId - Device id
        dpStr - The data points changed, the format like {"101": true}
      • 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. If the device is powered off or disconnected from the network,the server will call back to this method after 3 minutes.

        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