Skip to content

Commit

Permalink
condition on createEnrollmentGroup fix (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 authored Feb 4, 2022
1 parent 16143cf commit d9f226e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public async Task<IActionResult> Get()
{
try
{
// ne contient pas les proprieter
// don't contain properties
IEnumerable<Twin> devicesWithoutProperties = await this.devicesService.GetAllEdgeDeviceWithTags();
// ne contien pas les appareil connecter
// don't contain connected device
IEnumerable<Twin> edgeDevices = await this.devicesService.GetAllEdgeDevice();

List<GatewayListItem> newGatewayList = new ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public async Task<EnrollmentGroup> CreateEnrollmentGroupAsync(string deviceType)
TwinCollection tags;
TwinCollection desiredProperties;

if (deviceType == "LoRa")
if (deviceType == "LoRa Device")
{
enrollmentGroupId = this.config.DPSLoRaEnrollmentGroup;
tags = new TwinCollection("{ \"purpose\":\"" + "LoRaNetworkServer" + "\" }");
Expand Down Expand Up @@ -67,7 +67,7 @@ public async Task<EnrollmentGroup> CreateEnrollmentGroupAsync(string deviceType)
/// <returns>AttestationMechanism.</returns>
public async Task<AttestationMechanism> GetAttestationMechanism(string deviceType)
{
if (deviceType == "LoRa")
if (deviceType == "LoRa Device")
{
return await this.dps.GetEnrollmentGroupAttestationAsync(this.config.DPSLoRaEnrollmentGroup);
}
Expand Down

0 comments on commit d9f226e

Please sign in to comment.