MQTT communication over TCP using Neoway M660 module

hello sir,
i’m using Neoway M660 (like M590)module…
I want MQTT client and MQTT broker communication using this module…
i’m trying now with https://github.com/vshymanskyy/TinyGSM and https://github.com/knolleary/pubsubclient libraries for MQTT Client and using CloudMQTT for BROKER…
all working fyn…but a small bug was arised…
The Mqtt Connection losts Frequently…

my Application is “I want to Publish data to MQTT Broker for 10minutes”…

can u please give me suggestions.

thanq,
Sankar

Hi Sankar,
You should look at the UART command capture to see whats happening.
Are you able to send the data ?
When is this disconnection occurring. ?
Normally when we send a malformed packet , the broker disconnects the client.
So make sure your packets are formed correctly.
The protocol name for cloudmqtt broker is MQIsdp. Check these and let me know.
If you can observe the command flow on UART it will be helpful in debugging.