DeviceTwin Class
- java.lang.Object
- com.microsoft.azure.sdk.iot.device.DeviceTwin.DeviceTwin
public class DeviceTwin
Constructor Summary
Constructor |
Description |
<Type1,Type2>DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.PropertyCallBack<Type1,Type2> genericPropertyCallback, Object genericPropertyCallbackContext)
|
|
DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.TwinPropertiesCallback genericPropertiesCallback, Object genericPropertyCallbackContext)
|
|
DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.TwinPropertyCallBack genericPropertyCallback, Object genericPropertyCallbackContext)
|
|
Method Summary
Modifier and Type |
Method and Description |
void
|
getDeviceTwin()
|
void
|
subscribeDesiredPropertiesNotification(Map<DeviceTwin.Property,DeviceTwin.Pair<DeviceTwin.PropertyCallBack<String,Object>,Object>> onDesiredPropertyChange)
|
void
|
subscribeDesiredPropertiesTwinPropertyNotification(Map<DeviceTwin.Property,DeviceTwin.Pair<DeviceTwin.TwinPropertyCallBack,Object>> onDesiredPropertyChange)
|
synchronized
void
|
updateReportedProperties(Set<DeviceTwin.Property> reportedProperties)
|
synchronized
void
|
updateReportedProperties(Set<DeviceTwin.Property> reportedProperties, Integer version)
|
synchronized
void
|
updateReportedProperties(Set<DeviceTwin.Property> reportedProperties, Integer version, CorrelatingMessageCallback correlatingMessageCallback, Object correlatingMessageCallbackContext, IotHubEventCallback reportedPropertiesCallback, Object callbackContext)
|
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
<Type1,Type2>DeviceTwin
public DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.PropertyCallBack genericPropertyCallback, Object genericPropertyCallbackContext)
Parameters:
client
config
deviceTwinCallback
deviceTwinCallbackContext
genericPropertyCallback
genericPropertyCallbackContext
DeviceTwin
public DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.TwinPropertiesCallback genericPropertiesCallback, Object genericPropertyCallbackContext)
Parameters:
client
config
deviceTwinCallback
deviceTwinCallbackContext
genericPropertiesCallback
genericPropertyCallbackContext
DeviceTwin
public DeviceTwin(DeviceIO client, DeviceClientConfig config, IotHubEventCallback deviceTwinCallback, Object deviceTwinCallbackContext, DeviceTwin.TwinPropertyCallBack genericPropertyCallback, Object genericPropertyCallbackContext)
Parameters:
client
config
deviceTwinCallback
deviceTwinCallbackContext
genericPropertyCallback
genericPropertyCallbackContext
Method Details
getDeviceTwin
public void getDeviceTwin()
subscribeDesiredPropertiesNotification
public void subscribeDesiredPropertiesNotification(Map,Object>> onDesiredPropertyChange)
Parameters:
onDesiredPropertyChange
subscribeDesiredPropertiesTwinPropertyNotification
public void subscribeDesiredPropertiesTwinPropertyNotification(Map> onDesiredPropertyChange)
Parameters:
onDesiredPropertyChange
updateReportedProperties
public synchronized void updateReportedProperties(Set reportedProperties)
Parameters:
reportedProperties
Throws:
java.io.IOException
updateReportedProperties
public synchronized void updateReportedProperties(Set reportedProperties, Integer version)
Parameters:
reportedProperties
version
Throws:
java.io.IOException
updateReportedProperties
public synchronized void updateReportedProperties(Set reportedProperties, Integer version, CorrelatingMessageCallback correlatingMessageCallback, Object correlatingMessageCallbackContext, IotHubEventCallback reportedPropertiesCallback, Object callbackContext)
Parameters:
reportedProperties
version
correlatingMessageCallback
correlatingMessageCallbackContext
reportedPropertiesCallback
callbackContext
Throws:
java.io.IOException
Applies to