brocaar / chirpstack-network-server

ChirpStack Network Server is an open-source LoRaWAN network-server.
https://www.chirpstack.io
MIT License
1.48k stars 545 forks source link

Change configuration via API #571

Closed KrestenHelstrup closed 2 years ago

KrestenHelstrup commented 2 years ago

Summary

I would like to change configuration parameters via an API, like disable ADR, RX window and RX delay.

What is the use-case?

When developing LoRaWAN devices it is needed to test both RX windows, multiple delays and with/without ADR.

At the moment it is cumbersome to change the config file and restart the server every time a new setting needs to be tested and it makes it difficult to automate the testing.

Implementation description

If possible it should be implemented as a restAPI like what is done on the application server.

Can you implement this by yourself and make a pull request?

Unfortunately, no. I only have experience with C code.

brocaar commented 2 years ago

I'm not planning to add re-configuration through API methods. This adds quite some complexity in a HA setup, as the changes need to propagate to all instances. But, with the upcoming v4 version this should become a bit easier as you can re-define the same region multiple times.

This means that you can create a EU868 region without adr, one with, one with RX1 only, one with RX2 only etc... Each region will then have its own MQTT prefix (e.g. eu868_no_adr/gateway/.....) and the only thing needed is forwarding the gateway data to a different topic.