cablelabs / lpwanserver

LPWAN Provisioning & Management Server
https://lpwanserver.com
Apache License 2.0
37 stars 11 forks source link

Issue 277 #282

Closed rhythnic closed 5 years ago

rhythnic commented 5 years ago

What does this PR do?

Do you have any concerns with this PR?

The issue is for sending data to devices in tests, but I discovered that LPWAN Server doesn't yet support that. I will need to implement that feature and then resume this issue.

TTN is giving authentication errors if the app is retrieved soon after creating it. TTN is setup to create the network's test entities from within the test; however, I had to leave static entities on the TTN network to avoid that 403. The 403 also occurs when syncing networks in the test, so TTN is disabled for now. I will revisit later.

Loriot doesn't support updating any device keys or activation properties. I was also unable to create a device with an appkey. Creating a device with ABP works.

How can the reviewer verify this PR?

View, use app

Any background context you want to provide?

I updated the methods used for creating a device in Loriot. There were two API calls that I thought were for updating device keys and activation props, but they're alternate APIs for creating a device with OTAA/ABP info. My attempts to create a device with an appkey (OTAA) failed with a "missing parameters" error, but the payload was equal to or included additional properties to those in the docs. Need more time or better docs to resolve.

Moving the test data into the tests will protect against data loss and enable tests to run on any account.

Screenshots or logs (if appropriate)

Questions: