Hey,
I am trying to include my own ADR plugin to my chirpstack server that I am running in docker.
I am using image from chirpstack website https://hub.docker.com/r/chirpstack/chirpstack-network-server
I have compiled the ADR example from repository and moved it to ./test directory relative to the server directory. Next I added line in docker-compose-yml:
volumes:
- ./configuration/chirpstack:/etc/chirpstack
- ./lorawan-devices:/opt/lorawan-devices
- ./test:/test
and added position to the region_eu868.toml in region.network section
adr_plugins=[
"/test/adr-plugin",
]
where adr-plugin is the binary located in test directory
After all of these steps there is no additional ADR plugin to choose from besides the default ones.
EDIT:
I tried to move the adr_plugins section to the main config - chirpstack.toml under enabled_regions part in [network] section and got these logs:
chirpstack_1 | 2023-07-06T09:48:32.935091Z INFO
chirpstack::adr: Setting up adr algorithms
chirpstack_1 | 2023-07-06T09:48:32.935105Z INFO
chirpstack::adr: Setting up ADR plugin file_path=/test/adr-plugin
chirpstack_1 | Error: Read ADR plugin
chirpstack_1 |
chirpstack_1 | Caused by:
chirpstack_1 | stream did not contain valid UTF-8
chirpstack-docker_chirpstack_1 exited with code 1
Strange cuz the path is included as strings (in double quotes)