Skip to content

Commit 93fd033

Browse files
committed
Rename lora-semtech-bridge > lora-gateway-bridge.
1 parent ec47124 commit 93fd033

File tree

11 files changed

+54
-49
lines changed

11 files changed

+54
-49
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ deploy:
1515
skip_cleanup: true
1616
provider: releases
1717
api_key:
18-
secure: hue09xkRBLJpF5gR7nBCn1CySTTwUwe2ZYZA4Q2RjqdQ6Tk8KXgaJp+wk3xl24oWUb4l6dv2dETy+awT/G1DsOz6z5oGzuNFvAuTIqWgk5eIpctwPYlc9t0mgUnBJCx/eDYIoN/ogBxoE2QFE4CCfYcGd5iFpYb2aPw8oP6Pc5LYsm6PYUHi1IE69tyMj9aFWgtMYX8OxjhTx4vFpDvQmipQE3LqYlu9z7DyeIeuxLBgGFnrjOBQsjlUsQcsgmyeazUBN8qSUhYTdhSwYw5OEI45Ddc/Pkj/pz6HbHygUmO6FIa64rLADVK0Cuaw8+jxYSgeFu2sdIk7wE30sWBITzZhvs9k/OLIghwg+eu9mZ0l0i0K1gfdwqMpQA//QnXDzSiu6FkbCz0dNQX95VJNHfmMCSrg8Dd3ebMx+4VceU6IdWEtyJAHwFONJ4cNieufaPawnEym5VBG2uZ/Iv7rYFoS1W53oCD2mGDRWpTMxQkfFMAgD0gIDB+oN0FVaApjWy+/4KVXRYf4+Eqh0BZ6YizTRt+QmD3X+0jh3j/h0wMYUE6lAGqOmTcJUPUpGBzzx3jT9XVBHCeBTVTWT7wZAMtVPGyFj2Izm/B601DIsrIdvCco4QEUTCUjZjKDM6A3OUz512GBSbKYZ0EVGoxhRv2CRSO4MeQM5Y7Lwpu/6mc=
18+
secure: i9kTpzo0LVyMdMyN66SxXGBYovd98+B4DW9t/xFxx0cOzCwDKx/2p2WYF7cbT6FhVQVPZHJuIqatEFPVHgkRbiqsLIN26RL7xdCGV0gqjYoXVjJEdr6s9z1BhxUDGHY5oKhTZP7mHM+5jdHyZiwBbVFhJkeEbuZfwaOu7fho3IgGgnMASMh0LODk5niBnAJah1tMyUa5+7lW3fBAjwP2DNPICzIFm35JFjI5ViyirWcSapuTTE70BOH02PNd/wjx/4VnW5+wgCPeZXqjUQ5u94KHNLj5AxwotbzLNM1fDngJeDCmFMUPCjR+LCRnEO+4qhdMAhBdiTn0tXFoVQXlywrmfBdQtA3Kr8GSWHF1x2Oqr6/sIti0+fjyqdHRG2LdL7shEktBrG3muNUrVflpHXBzPOm9HvzQ7Hws6JudY52kermCeCRcbypcWz9PSK+XtAIbQxY0hO3cBRysNKjQ3K6IwPaUUqJzLrdowZ/LRhDur1JBXwc6cxS+4Yv885jUhIIfvFuM/lE1btK1zAtqVT1YVfXSpnMWk/FvBohHbQRy4i80Vd3an41hdM5Di/rPI8rkRaCqGRep3/FitKCVixvI1lKzgfRDFGLIBTBor0tL6tfD4T3ZuC/hRpTzI+UHx8XyO1RGZQIHNj3jIOJl+EBVYz+93KS3Z80v3uMj5ck=
1919
file_glob: true
2020
file: "dist/*.tar.gz"
2121
on:
2222
tags: true
23-
repo: brocaar/lora-semtech-bridge
23+
repo: brocaar/lora-gateway-bridge

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Changelog
22

3+
## 1.1.5
4+
5+
* Rename from `lora-semtech-bridge` to `lora-gateway-bridge`
6+
(backported from 2.0.2)
7+
38
## 1.1.4
49

510
* Update `lorawan` vendor to fix a mac command related marshaling issue.
11+
(backported from 2.0.1)
612

713
## 1.1.3
814

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM golang:1.6.2
22

3-
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-semtech-bridge
3+
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
44
ENV PATH=$PATH:$PROJECT_PATH/build
55

66
# install tools
@@ -17,4 +17,4 @@ COPY . $PROJECT_PATH
1717
# build
1818
RUN make build
1919

20-
CMD ["semtech-bridge"]
20+
CMD ["lora-gateway-bridge"]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GOARCH ?= amd64
77
build:
88
@echo "Compiling source for $(GOOS) $(GOARCH)"
99
@mkdir -p build
10-
@GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags "-X main.version=$(VERSION)" -o build/semtech-bridge$(BINEXT) cmd/semtech-bridge/main.go
10+
@GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags "-X main.version=$(VERSION)" -o build/lora-gateway-bridge$(BINEXT) cmd/lora-gateway-bridge/main.go
1111

1212
clean:
1313
@echo "Cleaning up workspace"
@@ -26,13 +26,13 @@ package: clean build
2626
@echo "Creating package for $(GOOS) $(GOARCH)"
2727
@mkdir -p dist/$(VERSION)
2828
@cp build/* dist/$(VERSION)
29-
@cd dist/$(VERSION)/ && tar -pczf ../lora_semtech_bridge_$(VERSION)_$(GOOS)_$(GOARCH).tar.gz .
29+
@cd dist/$(VERSION)/ && tar -pczf ../lora_gateway_bridge_$(VERSION)_$(GOOS)_$(GOARCH).tar.gz .
3030
@rm -rf dist/$(VERSION)
3131

3232
# shortcuts for development
3333

3434
serve: build
35-
./build/semtech-bridge
35+
./build/lora-gateway-bridge
3636

3737
run-compose-test:
38-
docker-compose run --rm semtechbridge make test
38+
docker-compose run --rm gatewaybridge make test

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# LoRa Semtech Bridge
1+
# LoRa Gateway Bridge
22

3-
[![Build Status](https://travis-ci.org/brocaar/lora-semtech-bridge.svg?branch=master)](https://travis-ci.org/brocaar/lora-semtech-bridge)
4-
[![GoDoc](https://godoc.org/github.com/brocaar/lora-semtech-bridge/cmd/semtech-bridge?status.svg)](https://godoc.org/github.com/brocaar/lora-semtech-bridge/cmd/semtech-bridge)
3+
[![Build Status](https://travis-ci.org/brocaar/lora-gateway-bridge.svg?branch=master)](https://travis-ci.org/brocaar/lora-gateway-bridge)
54

6-
*LoRa Semtech Bridge* is a service to enable LoRa gateway communication over MQTT.
5+
*LoRa Gateway Bridge* is a service to enable LoRa gateway communication over MQTT.
76
All incoming UDP traffic (Semtech UDP protocol) is published to a MQTT broker and
87
all messages received from the MQTT broker are sent to the gateway using UDP.
98

@@ -24,17 +23,17 @@ Depending upon your LoRa Gateway type, you might need to install the
2423

2524
## Getting started
2625

27-
* Download and unpack a pre-compiled binary from the [releases](https://github.com/brocaar/lora-semtech-bridge/releases)
26+
* Download and unpack a pre-compiled binary from the [releases](https://github.com/brocaar/lora-gateway-bridge/releases)
2827
page. Alternatively, build the code from source (when you have a Go development environment
2928
``make build`` should be sufficient).
3029

31-
* Start the ``semtech-bridge`` service. The ``--help`` argument will show
30+
* Start the ``lora-gateway-bridge`` service. The ``--help`` argument will show
3231
you all the available config options. When everything is setup correctly
33-
(your gateway is configured to send data to ``semtech-bridge``), you
32+
(your gateway is configured to send data to ``lora-gateway-bridge``), you
3433
should see ``PullData`` packets coming in. E.g.
3534

3635
``` bash
37-
$ ./bin/semtech-bridge
36+
$ ./bin/lora-gateway-bridge
3837
INFO[0000] backend/mqttpubsub: connecting to mqtt server server=tcp://127.0.0.1:1883
3938
INFO[0000] starting gateway udp listener addr=0.0.0.0:1700
4039
INFO[0006] incoming gateway packet addr=192.168.1.4:54993 type=PullData

cmd/lora-gateway-bridge/doc.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
NAME:
3+
lora-gateway-bridge - abstracts the packet_forwarder protocol into JSON over MQTT
4+
5+
USAGE:
6+
main [global options] command [command options] [arguments...]
7+
8+
COMMANDS:
9+
help, h Shows a list of commands or help for one command
10+
11+
GLOBAL OPTIONS:
12+
--udp-bind "0.0.0.0:1700" ip:port to bind the UDP listener to [$UDP_BIND]
13+
--mqtt-server "tcp://127.0.0.1:1883" MQTT server [$MQTT_SERVER]
14+
--mqtt-username MQTT username [$MQTT_USERNAME]
15+
--mqtt-password MQTT password [$MQTT_PASSWORD]
16+
--log-level "4" debug=5, info=4, warning=3, error=2, fatal=1, panic=0 [$LOG_LEVEL]
17+
--help, -h show help
18+
--version, -v print the version
19+
20+
COPYRIGHT:
21+
See http://github.com/brocaar/lora-gateway-bridge for copyright information
22+
23+
24+
*/
25+
package main
File renamed without changes.

cmd/semtech-bridge/main.go renamed to cmd/lora-gateway-bridge/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"syscall"
99

1010
log "github.com/Sirupsen/logrus"
11-
"github.com/brocaar/lora-semtech-bridge/backend/mqttpubsub"
12-
"github.com/brocaar/lora-semtech-bridge/gateway"
11+
"github.com/brocaar/lora-gateway-bridge/backend/mqttpubsub"
12+
"github.com/brocaar/lora-gateway-bridge/gateway"
1313
"github.com/brocaar/lorawan"
1414
"github.com/codegangsta/cli"
1515
)
@@ -72,9 +72,9 @@ func run(c *cli.Context) error {
7272

7373
func main() {
7474
app := cli.NewApp()
75-
app.Name = "semtech-bridge"
76-
app.Usage = "communicate with a LoRa gateway (Semtech UDP protocol) over MQTT"
77-
app.Copyright = "See http://github.com/brocaar/lora-semtech-bridge for copyright information"
75+
app.Name = "lora-gateway-bridge"
76+
app.Usage = "abstracts the packet_forwarder protocol into JSON over MQTT"
77+
app.Copyright = "See http://github.com/brocaar/lora-gateway-bridge for copyright information"
7878
app.Version = version
7979
app.Action = run
8080
app.Flags = []cli.Flag{

cmd/semtech-bridge/doc.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
semtechbridge:
1+
gatewaybridge:
22
build: .
33
command: make serve
44
ports:
55
- "1700/udp:1700/udp"
66
volumes:
7-
- ./:/go/src/github.com/brocaar/lora-semtech-bridge
7+
- ./:/go/src/github.com/brocaar/lora-gateway-bridge
88
links:
99
- mosquitto
1010
environment:

vendor/vendor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@
105105
"revisionTime": "2016-06-15T20:37:29Z"
106106
}
107107
],
108-
"rootPath": "github.com/brocaar/lora-semtech-bridge"
108+
"rootPath": "github.com/brocaar/lora-gateway-bridge"
109109
}

0 commit comments

Comments
 (0)