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

Commit a24ddb4

Browse files
authored
Implement Class-C support (#27)
1 parent 6c7ab04 commit a24ddb4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+900
-308
lines changed

api/application.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/channelList.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/common.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/downlinkQueue.pb.go

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

api/downlinkQueue.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import "google/api/annotations.proto";
77

88
// DownlinkQueue is the service managing the downlink data queue.
99
service DownlinkQueue {
10-
// Enqueue adds the given item to the queue.
10+
// Enqueue adds the given item to the queue. When the node operates in
11+
// Class-C mode, the data will be pushed directly to the network-server.
1112
rpc Enqueue(EnqueueDownlinkQueueItemRequest) returns (EnqueueDownlinkQueueItemResponse) {
1213
option(google.api.http) = {
1314
post: "/api/nodes/{devEUI}/queue"

api/node.pb.go

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

api/node.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ service Node {
3030
};
3131
}
3232

33-
// ListByApplicationID lists the nodes by the given application ID.
33+
// ListByApplicationID lists the nodes by the given application ID, sorted by the name of the node.
3434
rpc ListByApplicationID(ListNodeByApplicationIDRequest) returns (ListNodeResponse) {
3535
option (google.api.http) = {
3636
get: "/api/applications/{applicationID}/nodes"
@@ -106,6 +106,9 @@ message CreateNodeRequest {
106106

107107
// Node is activated by ABP.
108108
bool isABP = 15;
109+
110+
// Node operates in Class-C.
111+
bool isClassC = 16;
109112
}
110113

111114
message CreateNodeResponse {}
@@ -160,6 +163,9 @@ message GetNodeResponse {
160163

161164
// ID of the application owning the node.
162165
int64 applicationID = 15;
166+
167+
// Node operates in Class-C.
168+
bool isClassC = 16;
163169
};
164170

165171
message DeleteNodeRequest {
@@ -234,6 +240,9 @@ message UpdateNodeRequest {
234240

235241
// Node is activated by ABP.
236242
bool isABP = 15;
243+
244+
// Node operates in Class-C.
245+
bool isClassC = 16;
237246
}
238247

239248
message UpdateNodeResponse {}

0 commit comments

Comments
 (0)