Arduino - TTN lora-serialization library in lora app-server?

try to use this for lora gatewayhttps://github.com/kersing/ESP-1ch-Gateway-v5.0
default code will connect to ttn but u can change server to yours server ,it gonna be works.

then use example code from library lmic.h for al ora node, you will get this library when you modify arduino code for lora gateway.