Quectel MC60, Tiny GSM MQTTClient Problem

Hello, I am Using Quectel MC60 and Tiny GSM library to connect Mqtt server.. the module can connect to gprs network.. and can connect to broker mqtt..but if the mqtt.connected() command is executed it will return false, which means the module does not connect to the mqtt broker..if the command mqtt.connect(“test”) is executed it will return connected to broker.. but actually the MC60 not connected to mqtt broker.. please help me! any solution for this problem?

Hi
“mqtt.connected()”, are you using the sdk?
You can refer to our example_mqtt.c. If that still fails, test on another server, perhaps because your server has restrictions on connected devices

Iam using the Tiny GSM Library.. but its solved now.. I used AT command to connect the MQTT.. but the problem is.. when I sending data to mqtt and getting data from GPS at the same time there is a conflict, if successfully sending data to mqtt, the data from gps is not updated