I have added a RAK7249 Gateway on TTN and also added a MKR1300 as a device on TTN. (I also posted this on the RAKWireless forum).
Using the LoraSendAndReceive.ino demo sketch, the RAK7249 log and TTN log show the MKR1300 successfully joining the network, but sketch function join.OTAA returns 0 (meaning the connection failed).
Code snippet:
int connected = modem.joinOTAA(appEui, appKey);
if (!connected) {
Serial.println(“Something went wrong; are you indoor? Move near a window and retry”);
while (1) {}
}
The screenshot shows "Join Request" and then succeeds showing the "Join Accept"
Is anyone experiencing a similar issue?
Is there any way to see detailed debug information on why join.OTAA function is returning 0?
Thanks in advance.