Class DeviceEx

  • All Implemented Interfaces:
    java.lang.Iterable<buzz.getcoco.iot.Resource>

    public class DeviceEx
    extends buzz.getcoco.iot.Device
    • Nested Class Summary

      • Nested classes/interfaces inherited from class buzz.getcoco.iot.Device

        buzz.getcoco.iot.Device.AddResource, buzz.getcoco.iot.Device.AddResourceListener, buzz.getcoco.iot.Device.CommandId, buzz.getcoco.iot.Device.ConfigureWiFi, buzz.getcoco.iot.Device.DeviceManagementStatusListener, buzz.getcoco.iot.Device.DiscoverResource, buzz.getcoco.iot.Device.DiscoverResourceListener, buzz.getcoco.iot.Device.ForceRemoveResource, buzz.getcoco.iot.Device.InfoRequestListener, buzz.getcoco.iot.Device.InfoRequestStatusListener, buzz.getcoco.iot.Device.InfoResponseStatusListener, buzz.getcoco.iot.Device.MessageListener, buzz.getcoco.iot.Device.RemoveResource, buzz.getcoco.iot.Device.RemoveResourceListener, buzz.getcoco.iot.Device.SetResourceMetadata, buzz.getcoco.iot.Device.SetResourceName
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DeviceEx​(long deviceNodeId, buzz.getcoco.iot.Network parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      androidx.lifecycle.LiveData<java.lang.String> getDeviceNameObservable()  
      androidx.lifecycle.LiveData<buzz.getcoco.iot.Device> getDeviceRemovalObservable()  
      androidx.lifecycle.LiveData<java.lang.Boolean> getDeviceStateObservable()  
      Identifier getIdentifier()  
      protected void internalRemoveDevice()  
      protected void internalSetName​(java.lang.String deviceName)  
      protected void internalSetReady​(boolean ready)  
      java.lang.String toString()  
      • Methods inherited from class buzz.getcoco.iot.Device

        addTuyaResource, addZigbeeResource, addZwaveResource, configureWiFi, containsResource, discoverResources, discoverResources, forceRemoveResource, getAvailableChannelPorts, getDevicePsn, getFirmwareVersion, getId, getMake, getModel, getName, getParent, getPowerSource, getProductName, getReceiverType, getResource, getResourceMap, getSupportedProtocols, hashCode, internalAddResource, internalRemoveResource, internalSetDevicePsn, internalSetExtendable, internalSetFirmwareVersion, internalSetMake, internalSetModel, internalSetParent, internalSetPowerSource, internalSetProductName, internalSetProtocolSupported, internalSetReceiverType, isExtendable, isReady, iterator, reboot, removeResource, sendDeviceManagementCommand, sendInfoRequest, sendInfoResponse, setResourceMetadata, setResourceName, supportsProtocol
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • DeviceEx

        protected DeviceEx​(long deviceNodeId,
                           buzz.getcoco.iot.Network parent)
    • Method Detail

      • internalSetName

        protected void internalSetName​(java.lang.String deviceName)
        Overrides:
        internalSetName in class buzz.getcoco.iot.Device
      • internalSetReady

        protected void internalSetReady​(boolean ready)
        Overrides:
        internalSetReady in class buzz.getcoco.iot.Device
      • internalRemoveDevice

        protected void internalRemoveDevice()
        Overrides:
        internalRemoveDevice in class buzz.getcoco.iot.Device
      • getDeviceRemovalObservable

        public androidx.lifecycle.LiveData<buzz.getcoco.iot.Device> getDeviceRemovalObservable()
      • getDeviceStateObservable

        public androidx.lifecycle.LiveData<java.lang.Boolean> getDeviceStateObservable()
      • getDeviceNameObservable

        public androidx.lifecycle.LiveData<java.lang.String> getDeviceNameObservable()
      • getIdentifier

        public Identifier getIdentifier()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class buzz.getcoco.iot.Device