2024-10-21 03:32 AM - last edited on 2024-10-21 03:42 AM by SofLit
I am running an STM32 NUCLEO F429ZI project connected to HiveMQ, with the following details in the mqtt_app.c file using LWIP and MBEDTLS:
char* strUrlDefault = "mqtt://broker-dev.vconnex.vn:888";
char* strUsernameDefault = "SmartHome";
char* strPassWordDefault = "Sm@rtH0me!2020";
char* strCmdTopicDefault = "CmdTopicTest";
char* strContentTopicDefault = "ContentTopicTest";
How should these parameters be changed for HiveMQ, and are there any other files in STM32IDE that need to be modified in order for the project to work correctly?
This is mqtt_app.c file
This is mqtt_app.h
Structure of project
I hope everyone can help. If I haven't provided enough information, please feel free to ask for more.
2024-10-20 06:23 PM - edited 2024-10-20 07:45 PM
How to connect STM32F429ZI to MQTT HiveMQ? What is the connection principle, and what is the connection command? What are the steps to connect STM32F429ZI to HiveMQ?
2024-10-21 03:38 AM
Please see the posting tips for how to properly post source code - not as images:
Do you have basic TCP/IP working?
2024-10-21 03:39 AM
2024-10-21 03:43 AM - edited 2024-10-21 03:52 AM
@QuangIoT wrote:How to connect STM32F429ZI to MQTT HiveMQ? What is the connection principle, and what is the connection command? What are the steps to connect STM32F429ZI to HiveMQ?
HiveMQTT neither knows nor cares what microcontroller you use - these things would all be the same irrespective of your platform.
I suggest you start by reviewing these basic principles in the HiveMQ documentation, and general MQTT documentation, tutorials, etc.
https://docs.hivemq.com/hivemq/latest/user-guide/index.html
https://en.wikipedia.org/wiki/MQTT
https://www.emqx.com/en/blog/the-easiest-guide-to-getting-started-with-mqtt
2024-10-21 03:52 AM
"I am not particularly concerned about HiveMQ. I only describe my issue with setting up MQTT information, using HiveMQ as an example. My issue is wanting to modify the username, password, port, and URL but I don’t know which files to edit."
2024-10-21 03:56 AM
@QuangIoT wrote:I am not particularly concerned about HiveMQ ... My issue is wanting to modify the username, password, port, and URL
But those details will be entirely specific to HiveMQ and how you are using it - cloud? local server? etc ...
https://www.hivemq.com/resources/