Device Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. DeviceTwin. Device
- com.
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<Property |
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
getReportedProp
public HashSet
setDesiredPropertyCallback
public void setDesiredPropertyCallback(DeviceTwin.Property desiredProp, DeviceTwin.PropertyCallBack
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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java