Depends on, how the mqtt stuff is implemented by TELTONIKA.
When connecting AWS-IoT to a RUT955, i.e. using mosquitto, there is a debug option, I use.
Or implement special debug code into the LUA stuff, doing the comms to AWS-IOT.
However, I run official openwrt on the RUT955, which is much easier to customize for special app.