Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference to ISO 3166-1 alpha-2 #63

Closed
terrillmoore opened this issue Jun 1, 2018 · 0 comments
Closed

Add reference to ISO 3166-1 alpha-2 #63

terrillmoore opened this issue Jun 1, 2018 · 0 comments

Comments

@terrillmoore
Copy link
Member

// country codes for comparison. These values are chosen from the 2-letter domain suffixes (which
// I think are ISO standardized)
#define LMIC_COUNTRY_CODE_C(c1, c2) ((c1) * 256 + (c2))

  1. These are standardized under ISO 3166-1 alpha-2 (see Wikipedia)
  2. Should indicate that we always use lower-case by convention
  3. consider C++ versions in a header file that doesn't bring all of LMIC into scope. (ArduinoLoRaWAN?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant