RegistryManager UpdateTwinAsync 不更新双胞胎报告的属性

RegistryManager UpdateTwinAsync doesn't update twins Reported properties

我无法让 UpdateTwinAsync 执行任何操作。它不会给出错误。它 returns 之前报告的状态。

twin.Properties.Reported["data"] = "test";
Twin updatedTwin = await _registryManager.UpdateTwinAsync(twin.DeviceId, twin, twin.ETag);

我已经尝试了所有我能想到的方法。

问题的控制台日志:

Got Telemetry for IP Address=xxxxxxx for device=josh-test-device
{"$metadata":{"$lastUpdated":"2020-03-24T16:24:16.8339408Z"},"$version":1}
Setting twin.Properties.Reported to telemetry data for IP Address=xxxxxxx for device=josh-test-device
{"$metadata":{"$lastUpdated":"2020-03-24T16:24:16.8339408Z"},"$version":1,"Brand":"AXIS","ProdFullName":"AXIS P1427-LE Network Camera","ProdNbr":"P1427-LE","ProdShortName":"AXIS P1427-LE","ProdType":"Network Camera","ProdVariant":"","WebURL":"http://www.axis.com/"}
TwinUpdate complete for IP Address=xxxxxxx for device=josh-test-device
{"$metadata":{"$lastUpdated":"2020-03-24T16:24:16.8339408Z"},"$version":1}

设备孪生报告 属性无法从面向服务的端点更新。查看更多详细信息 here