MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / enableAutoPower

Method enableAutoPower

RFM69_ATC.cpp:173–175  ·  view source on GitHub ↗

============================================================================= enableAutoPower() - call with target RSSI, use 0 to disable (default), any other value with turn on autotransmit control. ============================================================================= TomWS1: New methods to address autoPower control

Source from the content-addressed store, hash-verified

171//=============================================================================
172// TomWS1: New methods to address autoPower control
173void RFM69_ATC::enableAutoPower(int16_t targetRSSI){ // TomWS1: New method to enable/disable auto Power control
174 _targetRSSI = targetRSSI; // no logic here, just set the value (if non-zero, then enabled), caller's responsibility to use a reasonable value
175}
176
177int16_t RFM69_ATC::getTargetRssi() {
178 return _targetRSSI;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected