I know the library is not currently in active development but I'm still using it since it is the best for working with RNx modules I think.
I'm currently trying to implement a custom ADR process during the Join since the current implementation is sending Join commands only with the base SF used in the library initialization: https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/src/TheThingsNetwork.cpp#L748
My current custom implementation tries to lower the DR each N retries during the Join process but I'm not able to set the DR properly since it is changed every time I call the join method on the TheThingsNetwork class.
I think maybe the setDR function can also update the this->sf value? Maybe calculating it like MAX_DR_REGION - dr?
I can also try to setup a PR if it is still accepted. Otherwise I would go for a fork necessarily.
I know the library is not currently in active development but I'm still using it since it is the best for working with RNx modules I think.
I'm currently trying to implement a custom ADR process during the Join since the current implementation is sending Join commands only with the base SF used in the library initialization: https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/src/TheThingsNetwork.cpp#L748
My current custom implementation tries to lower the DR each N retries during the Join process but I'm not able to set the DR properly since it is changed every time I call the
joinmethod on theTheThingsNetworkclass.I think maybe the
setDRfunction can also update thethis->sfvalue? Maybe calculating it likeMAX_DR_REGION - dr?I can also try to setup a PR if it is still accepted. Otherwise I would go for a fork necessarily.