Now that we can handle so many regions, it makes sense to add two APIs:
LMIC_getConfiguredRegionName() should return the region name as a string: "as923", "us915", etc.
LMIC_getConfiguredRegionIndex() should return the region index. Positive numbers 1..n should match the subsection within section 2 for the LoRaWAN regional spec.
Eventually we should have functions to map from region index to region name and vice versa. But that can wait until we switch to using function tables and allow support for multiple regions with a single codebase.
Now that we can handle so many regions, it makes sense to add two APIs:
LMIC_getConfiguredRegionName()
should return the region name as a string: "as923", "us915", etc.LMIC_getConfiguredRegionIndex()
should return the region index. Positive numbers 1..n should match the subsection within section 2 for the LoRaWAN regional spec.Eventually we should have functions to map from region index to region name and vice versa. But that can wait until we switch to using function tables and allow support for multiple regions with a single codebase.