Device Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.DeviceTwin.Device

Implements

PropertyCallBack<java.lang.String,java.lang.Object>

public abstract class Device
implements PropertyCallBack<java.lang.String,java.lang.Object>

Constructor Summary

Constructor Description
Device()

Method Summary

Modifier and Type Method and Description
void clean()
java.util.HashMap<Property,Pair<PropertyCallBack<java.lang.String,java.lang.Object>,java.lang.Object>> getDesiredProp()
java.util.HashSet<Property> getReportedProp()
void setDesiredPropertyCallback(DeviceTwin.Property desiredProp, DeviceTwin.PropertyCallBack<String,Object> desiredPropCallBack, Object desiredPropCallBackContext)
void setReportedProp(DeviceTwin.Property reportedProp)

Save the provided property.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Device

public Device()

Method Details

clean

public void clean()

getDesiredProp

public HashMap,Object>> getDesiredProp()

getReportedProp

public HashSet getReportedProp()

setDesiredPropertyCallback

public void setDesiredPropertyCallback(DeviceTwin.Property desiredProp, DeviceTwin.PropertyCallBack desiredPropCallBack, Object desiredPropCallBackContext)

Parameters:

desiredProp
desiredPropCallBack
desiredPropCallBackContext

setReportedProp

public void setReportedProp(DeviceTwin.Property reportedProp)

Save the provided property. If there is a saved property with the same key as the key in the provided reportedProp, the old value will be overwritten by the new value

Parameters:

reportedProp - the key and value to save as a reported property

Applies to