(Sorry its different topic)I am working on MQTT code(tuanpmt ) and I want to disconnect the MQTT after publishing the data to broker i.e Mosquitto server to the client.The output on serial terminal as shown below
MQTT: Sending, type: 3, id: 0000
TCP: Sent
MQTT: Published
MQTT: Sending, type: 3, id: 0000
TCP: Sent
MQTT: Published
MQTT: Sending, type: 3, id: 0000
TCP: Sent
MQTT: Published
MQTT: Sending, type: 3, id: 0000
TCP: Sent
MQTT: Published
MQTT: Send keepalive packet to xxxxxxxxxxxx:1883!
MQTT: Sending, type: 12, id: 0000
TCP: Sent
TCP: data received 2 bytes
TCP: Disconnected callback
MQTT: Disconnected
After it mentioning disconnect on console ,it maintain the connection with server i.e MQTT: Send keepalive packet to xxxxxxxxxxxx:1883!.I want to disconnect it and continue to main loop.How it can be possible?plz guide me