public class IotHubDeviceTwinHandler
private TwinCollection _reportedProperties = new TwinCollection();
get => _reportedProperties[PropertyNames.IpAddress] ?? string.Empty;
_reportedProperties[PropertyNames.IpAddress] = value;
public Task ReportProperties()
return _deviceState.DeviceClient.UpdateReportedPropertiesAsync(_reportedProperties);