Skip to content

Commit

Permalink
fix #154 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 authored Feb 1, 2022
1 parent 4223b3e commit eb9d4a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
CoerceText="true" CoerceValue="false" />
</MudItem>
<MudItem xs="12" md="6">
<MudTextField @bind-Value="@Device.AssetID" Label="IoT Asset ID" Variant="Variant.Outlined" />
<MudTextField @bind-Value="@Device.AssetId" Label="IoT Asset ID" Variant="Variant.Outlined" />
</MudItem>
<MudItem xs="12" md="6">
<MudTextField @bind-Value="@Device.LocationCode" Label="Location Asset ID" Variant="Variant.Outlined" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<MudCardContent>
<MudGrid>
<MudItem xs="12" md="6">
<MudTextField @bind-Value="@Device.AssetID" Label="IoT Asset ID" Variant="Variant.Outlined" />
<MudTextField @bind-Value="@Device.AssetId" Label="IoT Asset ID" Variant="Variant.Outlined" />
</MudItem>
<MudItem xs="12" md="6">
<MudTextField @bind-Value="@Device.LocationCode" Label="Location Asset ID" Variant="Variant.Outlined" />
Expand Down
4 changes: 2 additions & 2 deletions src/AzureIoTHub.Portal/Server/Mappers/DeviceTwinMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public DeviceDetails CreateDeviceDetails(Twin twin)
AppEUI = Helpers.DeviceHelper.RetrieveDesiredPropertyValue(twin, nameof(DeviceDetails.AppEUI)),
AppKey = Helpers.DeviceHelper.RetrieveDesiredPropertyValue(twin, nameof(DeviceDetails.AppKey)),
LocationCode = Helpers.DeviceHelper.RetrieveTagValue(twin, nameof(DeviceDetails.LocationCode)),
AssetID = Helpers.DeviceHelper.RetrieveTagValue(twin, nameof(DeviceDetails.AssetID)),
AssetId = Helpers.DeviceHelper.RetrieveTagValue(twin, nameof(DeviceDetails.AssetId)),
SensorDecoder = Helpers.DeviceHelper.RetrieveDesiredPropertyValue(twin, nameof(DeviceDetails.SensorDecoder)),
DeviceType = Helpers.DeviceHelper.RetrieveTagValue(twin, nameof(DeviceDetails.DeviceType)),
Commands = this.deviceModelCommandsManager.RetrieveCommands(modelId)
Expand All @@ -65,7 +65,7 @@ public void UpdateTwin(Twin twin, DeviceDetails item)
{
// Update the twin properties
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.LocationCode), item.LocationCode);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.AssetID), item.AssetID);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.AssetId), item.AssetId);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.LocationCode), item.LocationCode);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.DeviceType), item.DeviceType);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.ModelId), item.ModelId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeviceDetails

public string LocationCode { get; set; }

public string AssetID { get; set; }
public string AssetId { get; set; }

public string DeviceType { get; set; }

Expand Down

0 comments on commit eb9d4a5

Please sign in to comment.