Closed codev123 closed 10 months ago
The fundamental problem is that you are using the SX1268 in LoRa mode, which has no concept of address, that is only applicable in FSK mode.
RadioLib checks whether the requested action can be performed, so trying to call setNodeAddress
in LoRa mode will return RADIOLIB_ERR_WRONG_MODEM
. But your return status check is wrong:
// set Node Address to current radio node
if (radio.setNodeAddress(Tx_nodeAddr) == RADIOLIB_ERR_NONE) {
Serial.println(F("Selected frequency is invalid for this module!"));
while (true);
}
And you are also not setting the address at the receiver as far as I can tell.
Since this is not really an issue but rather incorrect usage, I'm converting this to a discussion thread.
First of all, Thank you very much for writing such extensive library consisting of all radio modules. it helps a lot to people like me with little programming knowledge.
Issue : I have enable address filtering at transmitter end and sending data to specific rx_address node, but i can recieve data at my reciever node with has no address filtering enable. this should'nt be possible.
my Transmitter code :
Reciever code :
please sir guide me where i am making mistake in my code. thank you.