‘TheThingsNetwork-DeviceInfo’ - that code is for the arduino leonardo.
one solution could be connecting your RN2483 to an usb serial interface (set to 3v3) and use a terminal program to ‘talk’ direct to the module by sending AT commands.
my suggestion would be… buy this module and connect it to the rn2483 and all TTN available examples will work… saves you a lot of time.
In fact you’ve then build an TTN UNO.
I have no experience in connecting an esp32 to a rn2483 (most people use a rfm95 insted)
I tried what you are attempting to do. You will need to wire the UART of the RN2483, plus 3.3V and GND to your ESP32 and then use a library to use AT commands from the ESP32 to the RN2483.
A lot of time to learn and also trial and errors.
I would highly recommend using a TTGO board that has the ESP32 and LoRa radio on a single board. You will save time and money. I love that the TTGO has an ESP32 WIFI, BLE and LoRa radio, plus its supported by Arduino libraries, etc.
The TTGO T-Beam is also a great choice as it has a Ublox GPS on it.