Setting MQTTS to MQTT Broker
Lab Objective:


1. client.key:
2. client.csr:
3. client.crt:
4. mosquitto.org.crt:
🔥 Requirements
Resources
Links
🚩 Let start
Create Application

Coding
1. Edit wifi_config.h

2. Generate Client key




3. Open client.csr, copy and paste content to https://test.mosquitto.org/ssl/


4.Download CA certificate

5. Edit file mqtt_client.h

6. Open the PEMfileToCstring

7. Use PEM to C String Conversion Tool to generate data format and copy to appropriate define in “configs/mqtt_client_config.h”

8. Save the file
9. Build and Launch the Application
Open Putty, baud rate 115200
Result

🎉 Congratulations! You can now complete this lab
Supported toolchains (make variable 'TOOLCHAIN')
Supported kits (make variable 'TARGET')
Related resources
Resources
Links
Other resources
Document history
Version
Description of change
Authors:
Last updated
Was this helpful?