你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Device Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. DeviceTwin. Device
- com.
Implements
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
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:
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: