Why are you expecting any RX at all?
You’ll only get RX for confirmed uplinks, if your application explicitly schedules a downlink, and for network commands like those for ADR. For mapping, you should not use confirmed uplinks, and for other usages downlinks (including confirmed uplinks) are limited to only 10 a day.
Please see https://www.thethingsnetwork.org/docs/lorawan/
The original code already shows you the RX if there is any. If you want to change the logging, I’d simply only move sprintf(s, "Received %i bytes of payload", LMIC.dataLen);
above the if (LMIC.dataLen)
. But I’d leave the if
in place; you’re now logging RSSI and SNR values that are really not true.
Well, the internet is big, just a file name won’t help most of us