How to make MikroTik wAP LR8 kit automatically reconnect to TTN after power outage?

I need assistance with a Mikrotik waP Lora 8 kit gateway please,after a power failure the gateway does not connect to The things network again and i have to restart it,any suggestions please?