bitconnector / ttn_mapper_t-beam

23 stars 11 forks source link

US 915 frequencies? #15

Closed yannickgagne closed 1 year ago

yannickgagne commented 1 year ago

How can I use this code for US LoRa frequencies?

I see a list of freq in lorawan.cpp that are for another region.

Thanks

bitconnector commented 1 year ago

Yes Since I live in europe I am using the EU868 frequencys. In theorie you should be able to easily change the used frequency-list in https://github.com/bitconnector/ttn_mapper_t-beam/blob/b8ba6a38c1f8666df9dffbe859dbe0f3e173d6f7/src/lorawan.cpp#L98

You can find your frequencys in this document

If you know how to do this, I would be thankful to see a pull-request with a proper #define US in the config.hpp :D

If you need help to do that just comment under this issue ;)

yannickgagne commented 1 year ago

I ended up using another repo that gets it's frequencies from LMIC I guess because I didn't need to define them anywhere.

Thanks for the quick reply!