Resolving AWS Certificate Connection Issues with ESP32-C3 Module

Resolving AWS Certificate Connection Issues with ESP32-C3 Module

Qiming Cloud/ 01

Problem Description

When usingESP32-C3-WROOM-02 module as a wireless communication module, with AT-V3.3.0.0 version, the client wantsto configure the MQTT certificate via AT commands, although the server can connect, the AT connection fails. Why is that?

Resolving AWS Certificate Connection Issues with ESP32-C3 Module

Qiming Cloud/ 02

Solution Approach

The client used the AT+SYSFLASH command to update the certificate in the AT firmware,but when trying to connect to AWS, it reported an error (mqtt disconnected). Through MQTTX, the server connection was tested to verify that the client server configuration and certificate are normal.

Qiming Cloud/ 03

Solution

By using the AT+SYSMFG command, read and write directly to the namespace in the NVS user partition. First, use the AT+SYSMFG commandto query the namespace. Then, through the AT+SYSMFG command, erase and rewrite the corresponding certificate in the namespace.

Resolving AWS Certificate Connection Issues with ESP32-C3 ModuleAmong them, the namespaces related to the AWS certificate are“mqtt_ca”, “mqtt_cert”, “mqtt_key”, erase and rewrite according to the certificate data length, and then read to confirm whether the certificate is written correctly.

Resolving AWS Certificate Connection Issues with ESP32-C3 Module

Other server connection operationsrefer to the MQTT AT connection cloud example for guidance.

Qiming Cloud/ 04

About Us

Shenzhen Qiming Cloud Technology Co., Ltd. is a partner and agent of Espressif in the Greater China region, focusing on innovation and research & development of IoT communication products and overall solutions, providing technical support and services for over3000 companies worldwide. We have developed our ownAI online support platformhttps://support.8ms.xyz/supports, with a BS architecturethat does not require login, providing customers with 7×24 uninterrupted after-sales technical support, ensuring the safety of customer projects!

Resolving AWS Certificate Connection Issues with ESP32-C3 ModuleResolving AWS Certificate Connection Issues with ESP32-C3 Module

Recommended Previous Issues ·

【New Product Release】 Qiming Cloud WT0132P4 Core Board, Small Size High Performance, Based on Espressif ESP32-P4 Development Application

【AI Technical Support】 ESP32-S3-WROOM-1U Module Voice Call Echo Optimization Issue – Qiming Cloud

【New Product Release】 Qiming Cloud WT0132C5-S6 Module, Espressif ESP32-C5 Chip Dual-Band Wi-Fi 6 Solution

【AI Technical Support】 ESP32-C3-MINI-1U Module Wake-up Crash Issue in Sleep Mode – Qiming Cloud

Leave a Comment

×