mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-15 12:24:27 +02:00
Enabling ADR selection
This commit is contained in:
parent
80bff1be27
commit
e92ff2a917
@ -303,7 +303,13 @@ public:
|
||||
bool selectSubBand(uint8_t band);
|
||||
|
||||
//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:
|
||||
TTNMessageCallback messageCallback;
|
||||
|
@ -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::selectSubBand(uint8_t band){ return LMIC_selectSubBand( band ); }
|
||||
|
||||
void TheThingsNetwork::setAdrMode( bool adr){ LMIC_setAdrMode( adr ); }
|
||||
|
||||
|
||||
// --- Callbacks ---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user