ReportedPropertiesCallback Interface
public interface ReportedPropertiesCallback
Callback to be executed when a reported properties update request has completed.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
onReportedPropertiesUpdateAcknowledged(IotHubStatusCode statusCode, ReportedPropertiesUpdateResponse response, IotHubClientException e, Object context)
The callback that is executed when the reported properties update request has completed. |
Method Details
onReportedPropertiesUpdateAcknowledged
public void onReportedPropertiesUpdateAcknowledged(IotHubStatusCode statusCode, ReportedPropertiesUpdateResponse response, IotHubClientException e, Object context)
The callback that is executed when the reported properties update request has completed.
Parameters:
statusCode
- The service's status code for the request. If OK then the request was processed succesfully.
response
- The new version of the reported properties after a successful update. If the client updating its reported properties is connected to Edgehub instead of IoT Hub, then this version won't change since Edgehub does not apply this reported properties update immediately.
e
- The exception that was encountered if any exception was encountered.
context
- The context that was provided for this callback in updateReportedPropertiesAsync(TwinCollection reportedProperties, ReportedPropertiesCallback reportedPropertiesCallback, Object callbackContext)
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java