Skip to content

Commit

Permalink
fix #76 check the DevEui at device creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 committed Jan 27, 2022
1 parent 24561ec commit 13f6c96
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ public async Task<IActionResult> CreateDeviceAsync(DeviceDetails device)
{
try
{
if (!Eui.TryParse(device.DeviceID, out ulong deviceIdConvert) && device.DeviceType == "LoRa Device")
{
throw new InvalidOperationException("the device id is in the wrong format.");
}

// Create a new Twin from the form's fields.
var newTwin = new Twin()
{
Expand Down

0 comments on commit 13f6c96

Please sign in to comment.