From 8c0e8a6586042e45621de03239ce6033d6ae10bf Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 17 Dec 2024 20:27:17 +0000 Subject: [PATCH] [SX126x] Remove address filtering from examples (#1268) --- .../SX126x_FSK_Modem/SX126x_FSK_Modem.ino | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino b/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino index 9bffbeee..cc8849da 100644 --- a/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino +++ b/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino @@ -126,33 +126,4 @@ void loop() { Serial.println(F("[SX1262] Failed to receive packet, code ")); Serial.println(state); } - - // FSK modem has built-in address filtering system - // it can be enabled by setting node address, broadcast - // address, or both - // - // to transmit packet to a particular address, - // use the following methods: - // - // radio.transmit("Hello World!", address); - // radio.startTransmit("Hello World!", address); - - // set node address to 0x02 - state = radio.setNodeAddress(0x02); - // set broadcast address to 0xFF - state = radio.setBroadcastAddress(0xFF); - if (state != RADIOLIB_ERR_NONE) { - Serial.println(F("[SX1262] Unable to set address filter, code ")); - Serial.println(state); - } - - // address filtering can also be disabled - // NOTE: calling this method will also erase previously set - // node and broadcast address - /* - state = radio.disableAddressFiltering(); - if (state != RADIOLIB_ERR_NONE) { - Serial.println(F("Unable to remove address filter, code ")); - } - */ }