MQTT packet format for EMQ Broker running on Amazon servers

Dear Ravi,
I followed your tutorial
but I want to eliminate MQTT.fx software out of the system because I want to see the GPS data directly sent to MySQL database using MQTT protocol. Now, when I have looked around for how I can make the packets for MQTT. I am not sure what username and password should be used for creating my connect packet. I want to test it first using the Hercules software as you did in one of your videos. Can you help in what my packets would be like?

I will be highly obliged.

P.s. I have seen your video in which you explain what packets should be used for cloudmqtt but I need for the amazon servers.
Usman Ashraf

Hi Usman,
Here are the packets those worked with emq.


You can always use Wireshark to see the packet details when sending from any MQTT client softwares.

The major changes would be to remove authentication because in my demo i did not enable authentication on EMQ. So you need to remove username and password fields and change the flags in connect packet to tell the broker that username and password are not present.
The protocol name will be MQTT instead of MQIsdp (for cloudmqtt).

Thanks so much @RaviPujar.

1 Like