Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #451 from TheThingsNetwork/develop
Browse files Browse the repository at this point in the history
v2.4.0
  • Loading branch information
htdvisser authored Feb 3, 2017
2 parents d3263bd + 1d3247e commit 08ad053
Show file tree
Hide file tree
Showing 77 changed files with 2,391 additions and 755 deletions.
32 changes: 32 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# History

## 2.4.0 (2017-02-03)

The 2.4.0 release contains the following API Changes:

- Add `SimulateUplink` RPC to Application Manager API. Can be used to test (for example) integrations or external applications.
- Add "confirmed" field to DownlinkMessage
- Add "is_retry" field to UplinkMessage

Other changes:

- Use `gogoproto` instead of regular `proto` (and use it in jsonpb marshaling for HTTP API)
- Better handling of confirmed uplink
- Add support for confirmed downlink
- Try to create AMQP exchange instead of crashing
- Add TLS support to MQTT Client
- Add validation for DataRates
- Add more metadata to log messages

## 2.3.0 (2017-01-20)

The 2.3.0 release contains the following API Changes:

- Added pagination with `limit` and `offset` in gRPC metadata or HTTP query string
- Handler Devices "List" operation returns total number of devices in gRPC Header

Other changes:

- Use `TheThingsNetwork/go-utils/log` instead of `apex/log`
- Use `TheThingsNetwork/go-utils/encoding` for Redis Maps and optimize list operations
- Don't crash on unexpected Otto panics
- Testing payload functions in `ttnctl`

## 2.2.0 (2017-01-16)

The 2.2.0 release contains the following API Changes:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deps: build-deps
govendor sync -v

dev-deps: deps
@command -v protoc-gen-gofast > /dev/null || go get github.com/gogo/protobuf/protoc-gen-gofast
@command -v protoc-gen-gogofast > /dev/null || go get github.com/gogo/protobuf/protoc-gen-gogofast
@command -v protoc-gen-grpc-gateway > /dev/null || go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
@command -v protoc-gen-ttndoc > /dev/null || go install github.com/TheThingsNetwork/ttn/utils/protoc-gen-ttndoc
@command -v mockgen > /dev/null || go get github.com/golang/mock/mockgen
Expand All @@ -39,7 +39,7 @@ COMPILED_PROTO_FILES = $(patsubst api%.proto, api%.pb.go, $(PROTO_FILES))
PROTOC_IMPORTS= -I/usr/local/include -I$(GO_PATH)/src -I$(PARENT_DIRECTORY) \
-I$(GO_PATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
PROTOC = protoc $(PROTOC_IMPORTS) \
--gofast_out=Mgoogle/api/annotations.proto=github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:$(GO_SRC) \
--gogofast_out=Mgoogle/api/annotations.proto=github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:$(GO_SRC) \
--grpc-gateway_out=:$(GO_SRC) `pwd`/

protos-clean:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ When you get started with The Things Network, you'll probably have some question
5. Make sure you have [Redis](http://redis.io/download) and [RabbitMQ](https://www.rabbitmq.com/download.html) **installed** and **running**.
On a fresh installation you might need to install the [MQTT plugin for RabbitMQ](https://www.rabbitmq.com/mqtt.html).
If you're on Linux, you probably know how to do that. On a Mac, just run `brew bundle`. The Windows installer will setup and start RabbitMQ as a service. Use the `RabbitMQ Command Prompt (sbin dir)` to run commands, i.e. to enable plugins.
6. Declare a RabbitMQ exchange `ttn.handler` of type `topic`. Using [the management plugin](http://www.rabbitmq.com/management.html), declare the exchange in the web interface `http://server-name:15672` or using the management cli, run `rabbitmqadmin declare exchange name=ttn.handler type=topic auto_delete=false durable=true`
6. Declare a RabbitMQ exchange `ttn.handler` of type `topic`. Using [the management plugin](http://www.rabbitmq.com/management.html), declare the exchange in the web interface `http://server-name:15672` or using the management cli, run `rabbitmqadmin declare exchange name=ttn.handler type=topic auto_delete=false durable=true`. If your handler's user has sufficient permissions on RabbitMQ, it will attempt to create the exchange if not present.

## Set up The Things Network's backend for Development

Expand Down
5 changes: 5 additions & 0 deletions amqp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ func (c *DefaultClient) connect(reconnect bool) (chan *AMQP.Error, error) {
return closed, nil
}

// GetChannel gets a new AMQP channel
func (c *DefaultClient) GetChannel() (*AMQP.Channel, error) {
return c.conn.Channel()
}

// Connect to the AMQP server. It will retry for ConnectRetries times with a delay of ConnectRetryDelay between retries
func (c *DefaultClient) Connect() error {
_, err := c.connect(false)
Expand Down
74 changes: 37 additions & 37 deletions api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08ad053

Please sign in to comment.