Skip to content

Commit cf592e5

Browse files
committed
Add support for moving devices between applications.
1 parent a11b914 commit cf592e5

22 files changed

+2120
-2092
lines changed

api/application.pb.go

+212-183
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/common.pb.go

+93-217
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/common.proto

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ package api;
44

55
import "google/protobuf/timestamp.proto";
66
import "google/protobuf/duration.proto";
7-
import "github.com/brocaar/loraserver/api/common/common.proto";
8-
import "github.com/brocaar/loraserver/api/gw/gw.proto";
7+
8+
// from loraserver
9+
import "api/common/common.proto";
10+
import "api/gw/gw.proto";
911

1012

1113
enum RXWindow {

api/device.pb.go

+225-264
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/device.proto

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ syntax = "proto3";
22

33
package api;
44

5-
import "github.com/brocaar/loraserver/api/common/common.proto";
65
import "google/api/annotations.proto";
76
import "google/protobuf/timestamp.proto";
87
import "google/protobuf/empty.proto";
98
import "common.proto";
109

10+
// from loraserver
11+
import "api/common/common.proto";
12+
1113

1214
// DeviceService is the service managing the devices.
1315
service DeviceService {
@@ -134,6 +136,9 @@ message Device {
134136
string name = 2;
135137

136138
// ID of the application to which the device must be added.
139+
// It is possible to move a device to a different application on update,
140+
// given that both the old and the new application share the same
141+
// service-profile.
137142
int64 application_id = 3 [json_name = "applicationID"];
138143

139144
// Description of the device.

api/deviceProfile.pb.go

+89-81
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/deviceQueue.pb.go

+66-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)