Skip to content

Commit 25a54ae

Browse files
committed
Make --band mandatory. Update changelog.
1 parent adb54ca commit 25a54ae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmd/loraserver/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ func run(c *cli.Context) {
4242
}
4343

4444
// get the band config
45+
if c.String("band") == "" {
46+
log.Fatalf("--band is undefined, valid options are: %s", strings.Join(bands, ", "))
47+
}
4548
bandConfig, err := band.GetConfig(band.Name(c.String("band")))
4649
if err != nil {
4750
log.Fatal(err)
@@ -51,7 +54,6 @@ func run(c *cli.Context) {
5154
log.WithFields(log.Fields{
5255
"version": version,
5356
"net_id": netID.String(),
54-
"nwk_id": netID.NwkID(),
5557
"band": c.String("band"),
5658
}).Info("starting LoRa Server")
5759

@@ -168,7 +170,6 @@ func main() {
168170
cli.StringFlag{
169171
Name: "band",
170172
Usage: fmt.Sprintf("ism band configuration to use. valid options are: %s", strings.Join(bands, ", ")),
171-
Value: "EU_863_870",
172173
EnvVar: "BAND",
173174
},
174175
cli.StringFlag{

docs/changelog.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## Untagged
3+
## 0.6.1
44

5-
* Band configuration can now be specified with the ``--band`` argument
5+
* Band configuration must now be specified with the ``--band`` argument
66
(no more separate binaries per ism band)
77
* RX info notifications (``application/[AppEUI]/node/[DevEUI]/rxinfo``)
88

0 commit comments

Comments
 (0)