Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Batch import creates ABP tags in Device Twin for OTAA-based device models #2985

Open
Metal-Mighty opened this issue May 7, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Metal-Mighty
Copy link
Contributor

Expected Behavior

When importing a list of devices from the provided CSV template file, the portal should check the type of device authentication before creating it, and only set values for the proper authentication method (OTAA or ABP)

Current Behavior

The portal creates OTAA devices with all properties set (with values or empty strings depending on what's provided), which causes the devices to fail loading in the LoRa Network Server due to the presence of ABP variables in the Device Twin (e.g. AppSKey).

Steps to Reproduce

  1. Get the import template
  2. Add an OTAA device without filling the ABP-specific columns
  3. Import in the portal
  4. Connect the device to your LoRa network

Context (Environment)

Portal version: 4.13.2
LoRaWAN Stack version: 2.2.2

Logs

image

Additional Information

image

@Metal-Mighty Metal-Mighty added the bug Something isn't working label May 7, 2024
@adcoly
Copy link

adcoly commented May 16, 2024

Removing those 3 parameters from the csv template does not fix the issue.
By the way, "TAG:supportLoRaFeatures" field is missing in the template.

@Metal-Mighty Metal-Mighty added this to the v6.0 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📝 Todo
Development

No branches or pull requests

2 participants