I configured chirpstack-V4 according to the official documentation and configured the ADR plugin, but the ADR plugin did not take effect. How do I need to debug?
The ADR plugin code I fixed returns for debugging:
export function name() {
return "Fixed SF11 ADR1";
}
export function id() {
return "fixed-sf11-adr";
}
export function handle(req) {
let resp1 = {
dr: 0,
txPowerIndex: 2,
nbTrans: 2
}
return resp1;
}
I configured the path in docker-compose.yml: - ./configuration/chirpstack/adr_plugins:/etc/chirpstack/adr_plugins.
Then I configured the adr_plugins field in chirpstack.toml: adr_plugins=[“/etc/chirpstack/adr_plugins/fixed-sf11-adr.js”].
After restarting the server, I can see “Fixed SF11 ADR” in “Device profiles”, and I configured a template and selected it.
Then I configured a device test with AS923, but found that the downlink linkAdr did not carry the DR and other parameters as I set, it seems that this option did not take effect.