LoRaWan example code resets device after sending a uplink

I want to send some data to my gateway using WiFi LoRa 32 (V3). I am using the ‘LoRaWan’(in HeltecExample) example code to test the LoRaWan communication. I have entered my keys and uploaded the code. The node joins successfully and sends an confirmed uplink message and then receives an unconfirmed downlink and then resets and joins again. It resets and joins again for every packet sent. Can someone help me with this.

I recommend checking out RadioLib instead of the Heltec LoRaWAN stack - there’s about 8 years difference or something like that between the development of both…