55. var registedDeviceTwin = await registryManager.GetTwinAsync(deviceId);
var rp =
JsonConvert.DeserializeObject(registedDeviceTwin.Properties.Reported.ToJson();
var rpJSON = (JObject)JsonConvert.DeserializeObject(rp);
var reportedProps = new Models.ReportedProperties() {
BatteryLevel = ThingsCar.BatteryLevel,…, ThingsCar.Status };
var json = JsonConvert.SerializeObject(reportedProps);
var patch =JsonConvert.DeserializeObject<TwinCollection>(json);
await deviceClient.UpdateReportedPropertiesAsync(patch);