You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TARGETID |= (uint16_t(CTLbyte) & 0x0C) << 6; //10 bit address (most significant 2 bits stored in bits(2,3) of CTL byte
350
350
SENDERID |= (uint16_t(CTLbyte) & 0x03) << 8; //10 bit address (most sifnigicant 2 bits stored in bits(0,1) of CTL byte
351
351
352
-
if(!(_promiscuousMode || TARGETID == _address || TARGETID == RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in promiscuous mode
352
+
if(!(_spyMode || TARGETID == _address || TARGETID == RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in spy mode
353
353
|| PAYLOADLEN < 3) // address situation could receive packets that are malformed and don't fit this libraries extra fields
354
354
{
355
355
PAYLOADLEN = 0;
@@ -501,13 +501,18 @@ void RFM69::unselect() {
501
501
#endif
502
502
}
503
503
504
-
// true = disable filtering to capture all frames on network
505
-
// false = enable node/broadcast filtering to capture only frames sent to this/broadcast address
506
-
voidRFM69::promiscuous(bool onOff) {
507
-
_promiscuousMode = onOff;
504
+
// true = disable ID filtering to capture all packets on network, regardless of TARGETID
505
+
// false (default) = enable node/broadcast ID filtering to capture only frames sent to this/broadcast address
if(!(_promiscuousMode || TARGETID == _address || TARGETID == RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in promiscuous mode
987
+
if(!(_spyMode || TARGETID == _address || TARGETID == RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in spy mode
983
988
|| PAYLOADLEN < 3) // address situation could receive packets that are malformed and don't fit this library's extra fields
0 commit comments