@iaia
I see in the LoRaHelper.cpp this code:
bool LoRaHelper::join()
{
debugPrintln("Trying to join...");
_rn2483->wakeUp();
bool result;
if (_isOtaaOn) {
result = joinOtaa();
}
else {
result = joinAbp();
}
if (result) {
_isInitialized = true;
if (!_isAdrOn) {
_rn2483->setSpreadingFactor(_spreadingFactor);
}
_rn2483->setPowerIndex(_powerIndex);
}
return result;
}
You can put the set SF before the init
bool LoRaHelper::join()
{
debugPrintln("Trying to join...");
_rn2483->wakeUp();
if (!_isAdrOn) {
_rn2483->setSpreadingFactor(_spreadingFactor);
}
_rn2483->setPowerIndex(_powerIndex);
bool result;
if (_isOtaaOn) {
result = joinOtaa();
}
else {
result = joinAbp();
}
if (result) {
_isInitialized = true;
}
return result;
}
Kind regards,
Jan