Flash MQTT certificates using AT Commands

keyurthumar
Posts: 5
Joined: Thu Jul 21, 2022 1:32 pm

Flash MQTT certificates using AT Commands

Postby keyurthumar » Thu Jul 21, 2022 1:50 pm

I am using ESP32C3 Mini with EFM32TG11 chip. I want to flash MQTT certificate through AT command. (I have refereed this link: viewtopic.php?t=9374)
I have tried to write into the flash using
AT+SYSFLASH=0,"mqtt_key"
AT+SYSFLASH=1,\"mqtt_key\",0,<length of the binary generated by PKI bin>
AT+SYSFLASH=0,"mqtt_cert"
AT+SYSFLASH=1,\"mqtt_cert\",0,<length of the binary generated by PKI bin>
I am getting response OK from the server for the erasing/writing certificates into the flash.
After that I am syncing with the time, configure and conecting MQTT.
But I am unble to connect with AWS cloud. Anyone can please help me out here ?

I have tried to flash same binary files with flash tool and I can successfully connect with MQTT client.

keyurthumar
Posts: 5
Joined: Thu Jul 21, 2022 1:32 pm

Re: Flash MQTT certificates using AT Commands

Postby keyurthumar » Tue Aug 02, 2022 6:49 am

I dig more into it using development kit and found that while updating certificates using AT+SYSFLASH commands (as mentioned above), I am getting below error in the debug logs. Can anyone please let me know how to resolve this error ?
image.png
Command Output
image.png (9.62 KiB) Viewed 884 times

Who is online

Users browsing this forum: Majestic-12 [Bot] and 171 guests