Skip to content

Commit

Permalink
Add profile id.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Oct 15, 2024
1 parent 185048b commit db56dff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test-runner/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub struct ProfileConfiguration {
#[derive(Default, Deserialize, Validate)]
#[serde(default)]
pub struct Profile {
pub id: usize,
#[validate(enumerate = ["EU868", "US915", "CN779", "EU433", "AU915", "CN470", "AS923", "AS923-2", "AS923-3", "AS923-4", "KR920", "IN865", "RU864"])]
pub region: String,
#[validate(enumerate = ["1.0.0", "1.0.1", "1.0.2", "1.0.3","1.0.4", "1.1.0"])]
Expand Down
8 changes: 8 additions & 0 deletions vendors/example-vendor/profiles/example-EU868.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[profile]
# ID.
#
# Vendor Profile ID (16 bit).
#
# See also (4.2.4):
# https://resources.lora-alliance.org/technical-recommendations/tr005-lorawan-device-identification-qr-codes
id = 0

# Region Common-name.
#
# Please refer to the LoRaWAN Regional Parameters specification for the available
Expand Down

0 comments on commit db56dff

Please sign in to comment.