You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,3 +76,36 @@ Solution:
76
76
3. Change related ip of host.docker.internal and gateway.docker.internal to your new ip (found in terminal using the ipconfig command: e.g. 192.168.0.1)
77
77
4. save
78
78
5. restart the application.
79
+
80
+
## Adding an ADR Algorithm
81
+
When the ADR Algorithm has been tested, and is ready for deployment, it has to be built as a Go Module.
Replace the necessary parts in `main.go` with your own adr algorithm.
91
+
Run:
92
+
```bash
93
+
$env:GOOS="linux"
94
+
$env:GOARCH="amd64"
95
+
go build
96
+
```
97
+
and install the packages as described in the output of `go build`.
98
+
finally `go build` can be run again to create the plugin, which is a binary with the name of your module `example-mod-name`.
99
+
100
+
### Adding the Plugin to the Network Server
101
+
If the default `docker-compose.yml` file is used, the folder `./configuration/chirpstack-network-server` is already copied to `/etc/chirpstack-network-server` in the docker container.
102
+
Therefore a new folder can be added such as `./configuration/chirpstack-network-server/adr-plugins` in which the go module can be added.
103
+
This makes the module available at `/etc/chirpstack-network-server/adr-plugins/example-mod-name` within the network server container.
104
+
105
+
The last step is to specify the file as being an adr-plugin within the `chirpstack-network-server.toml` config file by adding `adr_plugins=["/etc/chirpstack-network-server/adr-plugins/example-mod-name"]` under `[network_server.network_settings]`, like this:
0 commit comments