I have added a RAK7249 Gateway on TTN and also added a MKR1300 as a device on TTN.
Using the LoraSendAndReceive.ino demo sketch, the RAK7249 log and TTN log show the MKR1300 successfully joining the network, but join.OTAA function 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) {}
}
Is anyone experiencing this issue?
Is there any way to see detailed debug information on why join.OTAA function is returning 0?
Hi. MKR1300 is a pain in the as*.
First do you register the node DEV EUI in TTN device or try with TTN generated?
Use this example https://www.arduino.cc/en/Reference/MKRWANJoinOTAA
And do not forget to change DEV Eui in TTN with that the script gave you.