Search code examples
mbedlora

How to set a specific LoRa Spread Factor in Mbed OS


I'm trying to set the Spread Factor to 12 in Mbed, but there's no specific interface for that in the header. This answer suggested to set the Data Rate to 0 but it doesn't actually seem to solve the issue.


Solution

  • What is not working on this? As long as you (as the answer in the other question stated) set this either in ABP mode or after the Connection was established in OTAA mode this works fine. Note that the data rate is dependent on the channel plan that you load in. DR0 in EU868 means something different than DR0 in US915. The list of data rates and its corresponding spreading factor and bandwidth can be found in the regional parameters document.

    EU868

    Data rates EU868

    US915

    enter image description here