Could you please help me out how to check mqtt response when connection established or not? and check if the publisher publish msg successfuly or not?

im using your code but i dont know how to get response of acknowledgement of QOS1
please send QOS related code using GSM. plz.

thank you.