the SD is not a problem and I also know that the transmission from the Lora of the MKR works because I have already done a test with another Lora MKR which receives with this code:
#include <SPI.h>
#include <LoRa.h>
byte localAddress = 0x5D;
void setup() {
Serial.begin(115200);
if (!LoRa.begin(868E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
LoRa.setTxPower(17); //17 dB (defoult)(max power)
LoRa.setSpreadingFactor(10); //7 defoult (can be set from 6 to 12)
LoRa.setSignalBandwidth(62.5E3); //125E3 defoult (7.8 10.4 15.6 20.8 31.25 41.7 62.5 125 250 500)
LoRa.setCodingRate4(8); //5 defoult (can be from 5 to 8 that correspond to 4/5 and 4/8)
}
void loop() {
// try to parse packet
int packetSize = LoRa.parsePacket();
int password = LoRa.read();
if (packetSize) {
if (password != localAddress) {
return;
}
// received a packet
// read packet
while (LoRa.available()) {
Serial.print((char)LoRa.read());
}
// print information of packet
Serial.println("");
// Serial.print(LoRa.packetRssi());
// Serial.print(" , ");
// Serial.print(LoRa.packetSnr());
// Serial.print(" , ");
// Serial.println(packetSize);
}}
so the only problem is the Adafruit RFM95 module set incorrectly and I don't know what I'm doing wrong, it seems to me that I've set everything correctly but it doesn't receive... if I used this code on the Adafruit I'm wondering how to specify the Adafruit pins instead (since in the Lora MKR it is not needed as it is internal to the board, the library works as shown without setting anything regarding Pin CS or INT, RST etc.