Skip to content

Commit

Permalink
Merge pull request #6640 from TheThingsNetwork/fix/uplink-simulation
Browse files Browse the repository at this point in the history
Add transmission settings set flags generation
  • Loading branch information
adriansmares authored Oct 20, 2023
2 parents 94a1cda + c2f8168 commit 6054f3c
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 18 deletions.
2 changes: 1 addition & 1 deletion api/ttn/lorawan/v3/identifiers.proto
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ message EndDeviceVersionIdentifiers {
message NetworkIdentifiers {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
// LoRa Alliance NetID.
bytes net_id = 1 [
Expand Down
12 changes: 6 additions & 6 deletions api/ttn/lorawan/v3/lorawan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ enum TxSchedulePriority {
message LoRaDataRate {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
// Bandwidth (Hz).
uint32 bandwidth = 1;
Expand All @@ -541,7 +541,7 @@ message LoRaDataRate {
message FSKDataRate {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
// Bit rate (bps).
uint32 bit_rate = 1;
Expand All @@ -550,7 +550,7 @@ message FSKDataRate {
message LRFHSSDataRate {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
uint32 modulation_type = 1;
// Operating Channel Width (Hz).
Expand All @@ -561,7 +561,7 @@ message LRFHSSDataRate {
message DataRate {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
oneof modulation {
option (validate.required) = true;
Expand All @@ -578,13 +578,13 @@ message DataRate {
message TxSettings {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
// Transmission settings for downlink.
message Downlink {
option (thethings.flags.message) = {
select: true,
set: false
set: true
};
// Index of the antenna on which the uplink was received and/or downlink must be sent.
uint32 antenna_index = 1;
Expand Down
2 changes: 1 addition & 1 deletion pkg/ttnpb/identifiers.pb.go

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

51 changes: 51 additions & 0 deletions pkg/ttnpb/identifiers_flags.pb.go

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

12 changes: 6 additions & 6 deletions pkg/ttnpb/lorawan.pb.go

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

Loading

0 comments on commit 6054f3c

Please sign in to comment.