Enabling ADR selection

This commit is contained in:
Aaron Covrig 2020-06-16 14:50:59 -04:00
parent 80bff1be27
commit e92ff2a917
No known key found for this signature in database
GPG Key ID: 9784FE58FA0C17A9
2 changed files with 9 additions and 1 deletions

View File

@ -303,7 +303,13 @@ public:
bool selectSubBand(uint8_t band); bool selectSubBand(uint8_t band);
//void setDrTxpow (dr_t dr, s1_t txpow); // set default/start DR/txpow //void setDrTxpow (dr_t dr, s1_t txpow); // set default/start DR/txpow
//void setAdrMode (bit_t enabled); // set ADR mode (if mobile turn off)
/*
* @brief Enables or disables automatic data rate (ADR) for the device
*
* @param enabled boolean, when asserted true, ADR mode is enabled
*/
void setAdrMode (bool enabled); // set ADR mode (if mobile turn off)
private: private:
TTNMessageCallback messageCallback; TTNMessageCallback messageCallback;

View File

@ -270,6 +270,8 @@ bool TheThingsNetwork::enableChannel(uint8_t channel){ return LMIC_enableChannel
bool TheThingsNetwork::disableSubBand(uint8_t band){ return LMIC_disableSubBand( band ); } bool TheThingsNetwork::disableSubBand(uint8_t band){ return LMIC_disableSubBand( band ); }
bool TheThingsNetwork::selectSubBand(uint8_t band){ return LMIC_selectSubBand( band ); } bool TheThingsNetwork::selectSubBand(uint8_t band){ return LMIC_selectSubBand( band ); }
void TheThingsNetwork::setAdrMode( bool adr){ LMIC_setAdrMode( adr ); }
// --- Callbacks --- // --- Callbacks ---