If you have a Heltec ESP32 LoRa WiFi microcontroller and you want to connect the device to the things network IoT platform using LoRaWAN, you can check this code.