Seeeduino LoRaWAN -> Impossible to send data to The Thing Network

Hi Seeed Team,

I have an issue concerning the Seeeduino LoRaWAN I just buy.

I am based in France and I ran the following on the board :

However, I get this message … =>

19:06:19.281 -> +JOIN: Start
19:06:19.281 -> +JOIN: NORMAL
19:06:25.318 -> Joined network, waiting for modem…
19:06:40.306 -> +MSG: Please join network first
19:06:50.310 -> +MSG: Please join network first

Can you please help me ?

#include <LoRaWan.h>

unsigned char data[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA,};
char buffer[256];

void setup(void)
{
SerialUSB.begin(115200);
while(!SerialUSB);

lora.init();

memset(buffer, 0, 256);
lora.getVersion(buffer, 256, 1);
SerialUSB.print(buffer); 

memset(buffer, 0, 256);
lora.getId(buffer, 256, 1);
SerialUSB.print(buffer);

lora.setId(NULL, "00934A0D66A864C9", "70B3D57ED002E3DB");
// setKey(char *NwkSKey, char *AppSKey, char *AppKey);
lora.setKey(NULL, NULL, "117A10467A9E86D1C14108E8CC5891EF");

lora.setDeciveMode(LWOTAA);
lora.setDataRate(DR5, EU868);
lora.setAdaptiveDataRate(true);    

lora.setChannel(0, 868.1);
lora.setChannel(1, 868.3);
lora.setChannel(2, 868.5);
lora.setChannel(3, 867.1);
lora.setChannel(4, 867.3);
lora.setChannel(5, 867.5);
lora.setChannel(6, 867.7);

lora.setReceiceWindowFirst(1, 868.3);
lora.setReceiceWindowSecond(869.525, DR0);

lora.setPower(14);

lora.setPower(14);

while(!lora.setOTAAJoin(JOIN));
// Give it some time to join the network
// To prevent "LoRaWAN modem is busy" messages
SerialUSB.println("Joined network, waiting for modem...");
delay(5000);

}

void loop(void)
{
bool result = false;

result = lora.transferPacket("Hello World!", 10);
//result = lora.transferPacket(data, 10, 10);

if(result)
{
    short length;
    short rssi;
    
    memset(buffer, 0, 256);
    length = lora.receivePacket(buffer, 256, &rssi);
    
    if(length)
    {
        SerialUSB.print("Length is: ");
        SerialUSB.println(length);
        SerialUSB.print("RSSI is: ");
        SerialUSB.println(rssi);
        SerialUSB.print("Data is: ");
        for(unsigned char i = 0; i < length; i ++)
        {
            SerialUSB.print("0x");
            SerialUSB.print(buffer[i], HEX);
            SerialUSB.print(" ");
        }
        SerialUSB.println();
    }
}

}

What network does “The Thing Network” refer to? Do they support LoraWan? @Paul-Antoine_Bonlieu