Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 7132926

Browse files
committed
Implement per-application network settings.
1 parent 824f751 commit 7132926

35 files changed

+1437
-323
lines changed

api/application.pb.go

Lines changed: 326 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/application.proto

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package api;
44

55
// for grpc-gateway
66
import "google/api/annotations.proto";
7+
import "common.proto";
78

89
// Application is the service managing applications.
910
service Application {
@@ -51,6 +52,36 @@ message CreateApplicationRequest {
5152

5253
// Description of the application.
5354
string description = 2;
55+
56+
// RX delay.
57+
uint32 rxDelay = 3;
58+
59+
// RX1 data-rate offset.
60+
uint32 rx1DROffset = 4;
61+
62+
// Channel-list ID used for CFlist (see LoRaWAN regional parameters if this applies to your region).
63+
int64 channelListID = 5;
64+
65+
// RX window to use.
66+
RXWindow rxWindow = 6;
67+
68+
// Data-rate to use for RX2.
69+
uint32 rx2DR = 7;
70+
71+
// Relax frame-counter mode is enabled.
72+
bool relaxFCnt = 8;
73+
74+
// Interval (in frames) in which the ADR engine may adapt the data-rate of the node (0 = disabled).
75+
uint32 adrInterval = 9;
76+
77+
// Installation-margin to use for ADR calculation.
78+
double installationMargin = 10;
79+
80+
// Node is activated by ABP.
81+
bool isABP = 11;
82+
83+
// Node operates in Class-C.
84+
bool isClassC = 12;
5485
}
5586

5687
message CreateApplicationResponse {
@@ -72,6 +103,36 @@ message GetApplicationResponse {
72103

73104
// Description of the application.
74105
string description = 3;
106+
107+
// RX delay.
108+
uint32 rxDelay = 4;
109+
110+
// RX1 data-rate offset.
111+
uint32 rx1DROffset = 5;
112+
113+
// Channel-list ID used for CFlist (see LoRaWAN regional parameters if this applies to your region).
114+
int64 channelListID = 6;
115+
116+
// RX window to use.
117+
RXWindow rxWindow = 7;
118+
119+
// Data-rate to use for RX2.
120+
uint32 rx2DR = 8;
121+
122+
// Relax frame-counter mode is enabled.
123+
bool relaxFCnt = 9;
124+
125+
// Interval (in frames) in which the ADR engine may adapt the data-rate of the node (0 = disabled).
126+
uint32 adrInterval = 10;
127+
128+
// Installation-margin to use for ADR calculation.
129+
double installationMargin = 11;
130+
131+
// Node is activated by ABP.
132+
bool isABP = 12;
133+
134+
// Node operates in Class-C.
135+
bool isClassC = 13;
75136
}
76137

77138
message UpdateApplicationRequest {
@@ -83,6 +144,36 @@ message UpdateApplicationRequest {
83144

84145
// Description of the application.
85146
string description = 3;
147+
148+
// RX delay.
149+
uint32 rxDelay = 4;
150+
151+
// RX1 data-rate offset.
152+
uint32 rx1DROffset = 5;
153+
154+
// Channel-list ID used for CFlist (see LoRaWAN regional parameters if this applies to your region).
155+
int64 channelListID = 6;
156+
157+
// RX window to use.
158+
RXWindow rxWindow = 7;
159+
160+
// Data-rate to use for RX2.
161+
uint32 rx2DR = 8;
162+
163+
// Relax frame-counter mode is enabled.
164+
bool relaxFCnt = 9;
165+
166+
// Interval (in frames) in which the ADR engine may adapt the data-rate of the node (0 = disabled).
167+
uint32 adrInterval = 10;
168+
169+
// Installation-margin to use for ADR calculation.
170+
double installationMargin = 11;
171+
172+
// Node is activated by ABP.
173+
bool isABP = 12;
174+
175+
// Node operates in Class-C.
176+
bool isClassC = 13;
86177
}
87178

88179
message UpdateApplicationResponse {}

api/channelList.pb.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/common.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/downlinkQueue.pb.go

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)