Skip to content

Commit

Permalink
api: Add MAC version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
halimi committed Aug 21, 2024
1 parent 298f078 commit 3498d67
Show file tree
Hide file tree
Showing 7 changed files with 510 additions and 485 deletions.
1 change: 1 addition & 0 deletions api/ttn/lorawan/v3/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8350,6 +8350,7 @@ Transmission settings for downlink.
| `MAC_V1_1` | 4 | |
| `MAC_V1_0_3` | 5 | |
| `MAC_V1_0_4` | 6 | |
| `MAC_V1_2_0` | 7 | |

### <a name="ttn.lorawan.v3.MType">Enum `MType`</a>

Expand Down
3 changes: 2 additions & 1 deletion api/ttn/lorawan/v3/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -26157,7 +26157,8 @@
"MAC_V1_0_2",
"MAC_V1_1",
"MAC_V1_0_3",
"MAC_V1_0_4"
"MAC_V1_0_4",
"MAC_V1_2_0"
],
"default": "MAC_UNKNOWN"
},
Expand Down
6 changes: 6 additions & 0 deletions api/ttn/lorawan/v3/lorawan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ enum MACVersion {
MAC_V1_0_4 = 6 [(thethings.json.enum_value) = {
aliases: ["1.0.4"]
}];
MAC_V1_2_0 = 7 [(thethings.json.enum_value) = {
aliases: [
"1.2",
"1.2.0"
]
}];
}

enum PHYVersion {
Expand Down
973 changes: 489 additions & 484 deletions pkg/ttnpb/lorawan.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pkg/ttnpb/lorawan_json.pb.go

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

4 changes: 4 additions & 0 deletions pkg/ttnpb/testdata/ttnpb_encoding_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Binary | ttnpb.MACVersion | MAC_V1_0_2 | [3]
Binary | ttnpb.MACVersion | MAC_V1_0_3 | [5]
Binary | ttnpb.MACVersion | MAC_V1_0_4 | [6]
Binary | ttnpb.MACVersion | MAC_V1_1 | [4]
Binary | ttnpb.MACVersion | MAC_V1_2_0 | [7]
Binary | ttnpb.MType | CONFIRMED_DOWN | [5]
Binary | ttnpb.MType | CONFIRMED_UP | [4]
Binary | ttnpb.MType | JOIN_ACCEPT | [1]
Expand Down Expand Up @@ -596,6 +597,7 @@ JSON | ttnpb.MACVersion | MAC_V1_0_2 | "MAC_V1_0_2"
JSON | ttnpb.MACVersion | MAC_V1_0_3 | "MAC_V1_0_3"
JSON | ttnpb.MACVersion | MAC_V1_0_4 | "MAC_V1_0_4"
JSON | ttnpb.MACVersion | MAC_V1_1 | "MAC_V1_1"
JSON | ttnpb.MACVersion | MAC_V1_2_0 | "MAC_V1_2_0"
JSON | ttnpb.MType | CONFIRMED_DOWN | "CONFIRMED_DOWN"
JSON | ttnpb.MType | CONFIRMED_UP | "CONFIRMED_UP"
JSON | ttnpb.MType | JOIN_ACCEPT | "JOIN_ACCEPT"
Expand Down Expand Up @@ -1045,6 +1047,7 @@ ProtoJSON | ttnpb.MACVersion | MAC_V1_0_2 | "MAC_V1_0_2"
ProtoJSON | ttnpb.MACVersion | MAC_V1_0_3 | "MAC_V1_0_3"
ProtoJSON | ttnpb.MACVersion | MAC_V1_0_4 | "MAC_V1_0_4"
ProtoJSON | ttnpb.MACVersion | MAC_V1_1 | "MAC_V1_1"
ProtoJSON | ttnpb.MACVersion | MAC_V1_2_0 | "MAC_V1_2_0"
ProtoJSON | ttnpb.MType | CONFIRMED_DOWN | "CONFIRMED_DOWN"
ProtoJSON | ttnpb.MType | CONFIRMED_UP | "CONFIRMED_UP"
ProtoJSON | ttnpb.MType | JOIN_ACCEPT | "JOIN_ACCEPT"
Expand Down Expand Up @@ -1494,6 +1497,7 @@ Text | ttnpb.MACVersion | MAC_V1_0_2 | MAC_V1_0_2
Text | ttnpb.MACVersion | MAC_V1_0_3 | MAC_V1_0_3
Text | ttnpb.MACVersion | MAC_V1_0_4 | MAC_V1_0_4
Text | ttnpb.MACVersion | MAC_V1_1 | MAC_V1_1
Text | ttnpb.MACVersion | MAC_V1_2_0 | MAC_V1_2_0
Text | ttnpb.MType | CONFIRMED_DOWN | CONFIRMED_DOWN
Text | ttnpb.MType | CONFIRMED_UP | CONFIRMED_UP
Text | ttnpb.MType | JOIN_ACCEPT | JOIN_ACCEPT
Expand Down
5 changes: 5 additions & 0 deletions sdk/js/generated/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -32384,6 +32384,11 @@
"name": "MAC_V1_0_4",
"number": "6",
"description": ""
},
{
"name": "MAC_V1_2_0",
"number": "7",
"description": ""
}
]
},
Expand Down

0 comments on commit 3498d67

Please sign in to comment.