-
Notifications
You must be signed in to change notification settings - Fork 11
Description
The ChirpStack network requires organizationID
and serviceProfileID
to create an Application.
It requires organizationID
and networkServerID
to create a Device Profile.
Currently in the v2 branch, these values are being passed in the networkSettings
object of the Network record. The goal of this issue is to try to deduce those IDs to a singular possibility without the user having to pass them in. Those IDs are not available in the ChirpStack dashboard and may be difficult for the user to acquire. If possible, use the login credentials provided by the user to make API calls and find those IDs, which can then be added to the networkSettings
object of the Network record.
This may entail an initialization method in the Network Protocol handler. The initialization method can do whatever it needs to, and then return an object to be merged into the Network's networkSettings. The initialization method will run when the Network is created.
If initialization fails, remove the Network record and return the error to the user.
If the IDs can't be determined via the credentials, add the input fields to the metadata for ChirpStack so that the IDs can be entered by the user in the UI.