We are developing ESP32 based OnOff Controller. We want to connect it to our custom MQTT host instead of MQTT on AWS Rainmaker Cloud.
While claiming the device I provided the certificate for connect to Custom MQTT. But it didn't get connected. Here it's log.
Code: Select all
[0;31mE (6725) esp-tls-mbedtls: mbedtls_x509_crt_parse returned -0x2780[0m
[0;31mE (6725) esp-tls-mbedtls: Failed to set client pki context[0m
[0;31mE (6725) esp-tls-mbedtls: Failed to set client configurations, returned [0x8015] (ESP_ERR_MBEDTLS_X509_CRT_PARSE_FAILED)[0m
[0;31mE (6745) esp-tls: create_ssl_handle failed[0m
[0;31mE (6745) esp-tls: Failed to open new connection[0m
[0;31mE (6755) TRANSPORT_BASE: Failed to open a new connection[0m
[0;31mE (6755) MQTT_CLIENT: Error transport connect[0m
[0;31mE (6765) esp_mqtt_glue: MQTT_EVENT_ERROR[0m
[0;33mW (6765) esp_mqtt_glue: MQTT Disconnected. Will try reconnecting in a while...[0m
[0;32mI (6775) app_main: MQTT Disconnected.[0m
[0;32mI (8435) esp_rmaker_time: SNTP Synchronised.[0m
[0;32mI (8435) esp_rmaker_time: The current time is: Tue Jun 21 21:10:26 2022 +0800[CST], DST: No.[0m
W (8535) wifi:<ba-add>idx:1 (ifx:0, 0c:b6:d2:1c:4a:68), tid:6, ssn:0, winSize:64
[0;31mE (12225) esp-tls-mbedtls: mbedtls_x509_crt_parse returned -0x2780[0m
Regards,
Madhav Lohar
Gladiance Automation(India) Pvt.Ltd.