Flash MQTT certificates using AT Commands
Posted: 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.
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.