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

Method spyMode

RFM69.cpp:597–600  ·  view source on GitHub ↗

true = disable ID filtering to capture all packets on network, regardless of TARGETID false (default) = enable node/broadcast ID filtering to capture only frames sent to this/broadcast address

Source from the content-addressed store, hash-verified

595// true = disable ID filtering to capture all packets on network, regardless of TARGETID
596// false (default) = enable node/broadcast ID filtering to capture only frames sent to this/broadcast address
597void RFM69::spyMode(bool onOff) {
598 _spyMode = onOff;
599 //writeReg(REG_PACKETCONFIG1, (readReg(REG_PACKETCONFIG1) & 0xF9) | (onOff ? RF_PACKET1_ADRSFILTERING_OFF : RF_PACKET1_ADRSFILTERING_NODEBROADCAST));
600}
601
602bool RFM69::getSpyMode() {
603 return _spyMode;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected