Skip to content

Commit

Permalink
Fix #358 - Add Support LoRa Feature tag on LoRa devices (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored Feb 28, 2022
1 parent 1102df8 commit af74e41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AzureIoTHub.Portal/Server/Mappers/LoRaDeviceMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public void UpdateTwin(Twin twin, LoRaDeviceDetails item)
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.DeviceName), item.DeviceName);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.LocationCode), item.LocationCode);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.AssetId), item.AssetId);
Helpers.DeviceHelper.SetTagValue(twin, nameof(item.ModelId), item.ModelId);
Helpers.DeviceHelper.SetTagValue(twin, nameof(DeviceListItem.SupportLoRaFeatures), "true");

Helpers.DeviceHelper.SetTagValue(twin, nameof(item.ModelId), item.ModelId);

// Update the twin properties
twin.Properties.Desired[nameof(item.AppEUI)] = item.AppEUI;
Expand Down

0 comments on commit af74e41

Please sign in to comment.